| | |
| | | public SxqPage(List<SequencerEntity> sequencerList, string deviceId) |
| | | { |
| | | this.sequencerList = sequencerList; |
| | | for (int i = 0; i < 12; i++) { |
| | | this.sequencerList.Add(new SequencerEntity {seqId=i.ToString(),name=i.ToString(),type=1 }); |
| | | } |
| | | for (int i = 0; i < 4; i++) |
| | | { |
| | | this.sequencerList.Add(new SequencerEntity { seqId = i.ToString(), name = i.ToString(), type = 2 }); |
| | | } |
| | | this.deviceId = deviceId; |
| | | } |
| | | public void Show() |
| | |
| | | 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++; |
| | |
| | | |
| | | |
| | | } |
| | | fLayout.AdjustRealHeight(16); |
| | | fLayout.AdjustRealHeight(8); |
| | | |
| | | var list2 = this.sequencerList.FindAll((o) => o.type == 2); |
| | | for (int i = 0; i < list2.Count; i++) |