| | |
| | | VerticalBoutonFLayout buttonFram = new VerticalBoutonFLayout(); |
| | | buttonFram.AddView(fLayout); |
| | | buttonFram.Tag = sequencer; |
| | | buttonFram.Y = Application.GetRealWidth(16) + Application.GetRealHeight((VerticalBoutonFLayout.heightFrameLayout + 16) * line); |
| | | buttonFram.Y = Application.GetRealWidth(16) + Application.GetRealHeight((VerticalBoutonFLayout.heightFrameLayout + 8) * line); |
| | | buttonFram.X = Application.GetRealWidth(16) + Application.GetRealWidth((VerticalBoutonFLayout.widthFrameLayout + 8) * xCount); |
| | | buttonFram.btnName.Text = sequencer.name; |
| | | xCount++; |
| | |
| | | } |
| | | buttonFram.SetONClickListener((fl, btn) => |
| | | { |
| | | if (buttonFram.Tag != null || buttonFram.Tag is SequencerEntity) |
| | | if (buttonFram.Tag != null && buttonFram.Tag is SequencerEntity) |
| | | { |
| | | |
| | | var sequ = (SequencerEntity)buttonFram.Tag; |
| | |
| | | }); |
| | | buttonFram.SetOFFClickListener((fl, btn) => |
| | | { |
| | | if (buttonFram.Tag != null || buttonFram.Tag is SequencerEntity) |
| | | if (buttonFram.Tag != null && buttonFram.Tag is SequencerEntity) |
| | | { |
| | | var sequ = (SequencerEntity)buttonFram.Tag; |
| | | SequencerControlExecute(sequ.seqId, "off"); |
| | |
| | | |
| | | |
| | | } |
| | | fLayout.AdjustRealHeight(16); |
| | | fLayout.AdjustRealHeight(8); |
| | | |
| | | var list2 = this.sequencerList.FindAll((o) => o.type == 2); |
| | | for (int i = 0; i < list2.Count; i++) |
| | |
| | | btnName.MouseDownEventHandler += (sen, e) => |
| | | { |
| | | btnName.IsSelected = true; |
| | | if (btnName.Tag != null || btnName.Tag is SequencerEntity) |
| | | if (btnName.Tag != null && btnName.Tag is SequencerEntity) |
| | | { |
| | | var sequ = (SequencerEntity)btnName.Tag; |
| | | SequencerControlExecute(sequ.seqId, "on"); |