From 54be52bc0ab6ce3207d421db4e5b05d14886b148 Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期二, 07 十一月 2023 16:46:53 +0800 Subject: [PATCH] UI优化 --- HDL_ON/UI/UI0-Stan/Form/DeviceFunctionCardCommonForm.cs | 22 +++++++++++++++------- 1 files changed, 15 insertions(+), 7 deletions(-) diff --git a/HDL_ON/UI/UI0-Stan/Form/DeviceFunctionCardCommonForm.cs b/HDL_ON/UI/UI0-Stan/Form/DeviceFunctionCardCommonForm.cs index 9f4971b..a58c218 100644 --- a/HDL_ON/UI/UI0-Stan/Form/DeviceFunctionCardCommonForm.cs +++ b/HDL_ON/UI/UI0-Stan/Form/DeviceFunctionCardCommonForm.cs @@ -302,12 +302,20 @@ /// <param name="btnHigherCollection">涓婁竴绾х晫闈㈢殑鏀惰棌鎺т欢(鍘熸潵on鐨勬鏋跺お鍧�)</param> /// <param name="btnHigherDeviceName">涓婁竴绾х晫闈㈢殑璁惧鍚嶅瓧鎺т欢(鍘熸潵on鐨勬鏋跺お鍧�)</param> private void AddTopSettingIcon(Button btnHigherDeviceName, Button btnHigherRoom) - { - //璁剧疆鍥炬爣(闂ㄩ攣鐣岄潰闇�瑕佸�熺敤杩欎釜鍥炬爣鐨刋杞村拰Y杞�,鎵�浠ュ姞杩涙潵) - var btnSetting = new PicViewControl(28, 28); - btnSetting.X = Application.GetRealWidth(337); - btnSetting.Y = Application.GetRealHeight(9); - btnSetting.UnSelectedImagePath = "Public/FuncInfoSetIcon.png"; + { + //璁剧疆鍥炬爣(闂ㄩ攣鐣岄潰闇�瑕佸�熺敤杩欎釜鍥炬爣鐨刋杞村拰Y杞�,鎵�浠ュ姞杩涙潵) + var btnSetting = new Button() + { + X = Application.GetRealWidth(337), + Y = Application.GetRealHeight(19), + Width = Application.GetMinRealAverage(32), + Height = Application.GetMinRealAverage(32), + UnSelectedImagePath = "Public/FuncInfoSetIcon.png", + }; + //var btnSetting = new PicViewControl(28, 28); + //btnSetting.X = Application.GetRealWidth(337); + //btnSetting.Y = Application.GetRealHeight(9); + //btnSetting.UnSelectedImagePath = "Public/FuncInfoSetIcon.png"; btnSetting.Name = "btnSetting"; topFrameLayout.AddChidren(btnSetting); @@ -317,7 +325,7 @@ btnSetting.Visible = false; } - btnSetting.ButtonClickEvent += (sender, e) => + btnSetting.MouseUpEventHandler += (sender, e) => { var infoView = new UI.FunctionBaseInfoSetPage(this.device, () => { -- Gitblit v1.8.0