From cbc156bc38d8b8eae7aef60cb186ab2b52fa701f Mon Sep 17 00:00:00 2001 From: wxr <wxr@hdlchina.com.cn> Date: 星期二, 16 七月 2024 13:59:56 +0800 Subject: [PATCH] 增加全部挂断 --- HDL_ON/UI/UI2/FuntionControlView/Aks/SxqPage.cs | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/HDL_ON/UI/UI2/FuntionControlView/Aks/SxqPage.cs b/HDL_ON/UI/UI2/FuntionControlView/Aks/SxqPage.cs index 1f0ce23..6bcd53a 100644 --- a/HDL_ON/UI/UI2/FuntionControlView/Aks/SxqPage.cs +++ b/HDL_ON/UI/UI2/FuntionControlView/Aks/SxqPage.cs @@ -97,7 +97,7 @@ 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++; @@ -108,7 +108,7 @@ } 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; @@ -118,7 +118,7 @@ }); 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"); @@ -127,7 +127,7 @@ } - fLayout.AdjustRealHeight(16); + fLayout.AdjustRealHeight(8); var list2 = this.sequencerList.FindAll((o) => o.type == 2); for (int i = 0; i < list2.Count; i++) @@ -151,7 +151,7 @@ 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"); -- Gitblit v1.8.0