From b69d7735274b8d0f741da8a6bb8b8e1347477a5a Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期四, 19 三月 2020 17:14:16 +0800 Subject: [PATCH] 20200319 --- HDL_ON/UI/UI2/2-Classification/ClassificationPageBLL.cs | 102 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 101 insertions(+), 1 deletions(-) diff --git a/HDL_ON/UI/UI2/2-Classification/ClassificationPageBLL.cs b/HDL_ON/UI/UI2/2-Classification/ClassificationPageBLL.cs index de4cba5..d0c0e9f 100644 --- a/HDL_ON/UI/UI2/2-Classification/ClassificationPageBLL.cs +++ b/HDL_ON/UI/UI2/2-Classification/ClassificationPageBLL.cs @@ -1,18 +1,118 @@ 锘縰sing System; +using System.Collections.Generic; +using HDL_ON.UI.CSS; +using Shared; + namespace HDL_ON.UI { public partial class ClassificationPage { + /// <summary> /// 鍔犺浇浜嬩欢鍒楄〃 /// </summary> void LoadEventList() { - + LoadEvent_ShowedChange(); } #region 椤堕儴瀵艰埅鏍忎簨浠� + /// <summary> + /// 鏄剧ず鐣岄潰鍒囨崲 + /// </summary> + void LoadEvent_ShowedChange() + { + contentPageView.PageChange = (sender, e) => + { + if(contentPageView.PageIndex == 0) + { + btnRoomTilte.IsSelected = true; + btnRoomTilte.TextSize = CSS_FontSize.HeadlineFontSize; + btnRoomTilte.IsBold = true; + btnFuncTitle.IsSelected = false; + btnFuncTitle.TextSize = CSS_FontSize.TextFontSize; + btnFuncTitle.IsBold = false; + } + else + { + btnFuncTitle.IsSelected = true; + btnFuncTitle.TextSize = CSS_FontSize.HeadlineFontSize; + btnFuncTitle.IsBold = true; + btnRoomTilte.IsSelected = false; + btnRoomTilte.TextSize = CSS_FontSize.TextFontSize; + btnRoomTilte.IsBold = false; + } + }; + btnRoomTilte.MouseUpEventHandler = (sender, e) => + { + if (btnRoomTilte.IsSelected) + { + return; + } + btnRoomTilte.IsSelected = true; + btnRoomTilte.TextSize = CSS_FontSize.HeadlineFontSize; + btnFuncTitle.IsSelected = false; + btnFuncTitle.TextSize = CSS_FontSize.TextFontSize; + + contentPageView.PageIndex = 0; + }; + btnFuncTitle.MouseUpEventHandler = (sender, e) => { + if (btnFuncTitle.IsSelected) + { + return; + } + btnFuncTitle.IsSelected = true; + btnFuncTitle.TextSize = CSS_FontSize.HeadlineFontSize; + btnRoomTilte.IsSelected = false; + btnRoomTilte.TextSize = CSS_FontSize.TextFontSize; + contentPageView.PageIndex = 1; + }; + } #endregion + + /// <summary> + /// 鍏抽棴鎵撳紑鍏ㄩ儴鐏厜 + /// </summary> + void LoadEvent_LightsPower(Button btn) + { + btn.IsSelected = !btn.IsSelected; + if (btn.IsSelected) + { + + } + else + { + + } + } + + /// <summary> + /// 绐楀笜鍏ㄥ紑鍏ㄥ叧 + /// </summary> + void LoadEvent_CurtainSwitch(Button btnClose,Button btnOpen) + { + btnOpen.MouseUpEventHandler = (sender, e) => + { + if(btnOpen.IsSelected) + { + return; + } + btnOpen.IsSelected = true; + btnClose.IsSelected = false; + }; + + btnClose.MouseUpEventHandler = (sender, e) => + { + if (btnClose.IsSelected) + { + return; + } + btnClose.IsSelected = true; + btnOpen.IsSelected = false; + }; + + + } } } -- Gitblit v1.8.0