From 62d098cb78296feaa6f786a20748921338db838c Mon Sep 17 00:00:00 2001 From: wei <kaede@kaededeMacBook-Air.local> Date: 星期四, 21 一月 2021 15:44:02 +0800 Subject: [PATCH] 1 --- HDL_ON/UI/1-test-/TestDialog.cs | 260 ++++++++++++++++++++++++++-------------------------- 1 files changed, 130 insertions(+), 130 deletions(-) diff --git a/HDL_ON/UI/1-test-/TestDialog.cs b/HDL_ON/UI/1-test-/TestDialog.cs index 0c81770..066fe16 100644 --- a/HDL_ON/UI/1-test-/TestDialog.cs +++ b/HDL_ON/UI/1-test-/TestDialog.cs @@ -1,151 +1,151 @@ -锘縰sing System; -using System.Collections.Generic; -using Shared; +锘�//using System; +//using System.Collections.Generic; +//using Shared; -namespace HDL_ON.UI.test -{ - public class TestDialog - { - Dialog dialog; - public TestDialog() - { - dialog = new Dialog(); - } +//namespace HDL_ON.UI.test +//{ +// public class TestDialog +// { +// Dialog dialog; +// public TestDialog() +// { +// dialog = new Dialog(); +// } - public void InitView() - { - //娴嬭瘯绫诲瀷 - //1: 钃濈墮娴嬭瘯 - int testType = 1; - var bodyView = new FrameLayout() - { - BackgroundColor = CSS.CSS_Color.MainBackgroundColor - }; - dialog.AddChidren(bodyView); +// public void InitView() +// { +// //娴嬭瘯绫诲瀷 +// //1: 钃濈墮娴嬭瘯 +// int testType = 1; +// var bodyView = new FrameLayout() +// { +// BackgroundColor = CSS.CSS_Color.MainBackgroundColor +// }; +// dialog.AddChidren(bodyView); - var contentView = new VerticalScrolViewLayout() - { - Y = Application.GetRealHeight(63), - BackgroundColor = CSS.CSS_Color.BackgroundColor, - }; - bodyView.AddChidren(contentView); +// var contentView = new VerticalScrolViewLayout() +// { +// Y = Application.GetRealHeight(63), +// BackgroundColor = CSS.CSS_Color.BackgroundColor, +// }; +// bodyView.AddChidren(contentView); - //var btn = new Button() - //{ - // Height = Application.GetRealHeight(60), - // BorderColor = CSS.CSS_Color.AuxiliaryColor2, - // BorderWidth = (uint)Application.GetRealWidth(5), - // TextColor = 0xFF000000, - // TextAlignment =TextAlignment.Center, - // Text = "" - //}; - //contentView.AddChidren(btn); - //btn.MouseUpEventHandler = (d, d1) => - //{ - //}; - #region 钃濈墮娴嬭瘯 - if (testType == 1) - { - var bc = new MyBlufiClient(); +// //var btn = new Button() +// //{ +// // Height = Application.GetRealHeight(60), +// // BorderColor = CSS.CSS_Color.AuxiliaryColor2, +// // BorderWidth = (uint)Application.GetRealWidth(5), +// // TextColor = 0xFF000000, +// // TextAlignment =TextAlignment.Center, +// // Text = "" +// //}; +// //contentView.AddChidren(btn); +// //btn.MouseUpEventHandler = (d, d1) => +// //{ +// //}; +// #region 钃濈墮娴嬭瘯 +// if (testType == 1) +// { +// var bc = new MyBlufiClient(); - Dictionary<string, string> ids = new Dictionary<string, string>(); - Action<string,string> action = (name,uuid) => { - if (!ids.ContainsKey(uuid)) - { - ids.Add(uuid, name); - } - }; - bc.SetBlufiDeviceDelegate(action); +// Dictionary<string, string> ids = new Dictionary<string, string>(); +// Action<string,string> action = (name,uuid) => { +// if (!ids.ContainsKey(uuid)) +// { +// ids.Add(uuid, name); +// } +// }; +// bc.SetBlufiDeviceDelegate(action); - var btn5 = new Button() - { - Height = Application.GetRealHeight(60), - BorderColor = CSS.CSS_Color.AuxiliaryColor2, - BorderWidth = (uint)Application.GetRealWidth(5), - TextColor = 0xFF000000, - TextAlignment = TextAlignment.Center, - Text = "鍋滄鎼滅储" - }; - contentView.AddChidren(btn5); - btn5.MouseUpEventHandler = (d, d1) => - { - bc.StopScanBlufi(); - }; +// var btn5 = new Button() +// { +// Height = Application.GetRealHeight(60), +// BorderColor = CSS.CSS_Color.AuxiliaryColor2, +// BorderWidth = (uint)Application.GetRealWidth(5), +// TextColor = 0xFF000000, +// TextAlignment = TextAlignment.Center, +// Text = "鍋滄鎼滅储" +// }; +// contentView.AddChidren(btn5); +// btn5.MouseUpEventHandler = (d, d1) => +// { +// bc.StopScanBlufi(); +// }; - var btn1 = new Button() - { - Height = Application.GetRealHeight(60), - BorderColor = CSS.CSS_Color.AuxiliaryColor2, - BorderWidth = (uint)Application.GetRealWidth(5), - TextColor = 0xFF000000, - Text = "鎼滅储钃濈墮", - TextAlignment = TextAlignment.Center, - }; - contentView.AddChidren(btn1); +// var btn1 = new Button() +// { +// Height = Application.GetRealHeight(60), +// BorderColor = CSS.CSS_Color.AuxiliaryColor2, +// BorderWidth = (uint)Application.GetRealWidth(5), +// TextColor = 0xFF000000, +// Text = "鎼滅储钃濈墮", +// TextAlignment = TextAlignment.Center, +// }; +// contentView.AddChidren(btn1); - btn1.MouseUpEventHandler = (d, d1) => - { - bc.ScanBlufi(); - }; +// btn1.MouseUpEventHandler = (d, d1) => +// { +// bc.ScanBlufi(); +// }; - var btn2 = new Button() - { - Height = Application.GetRealHeight(60), - BorderColor = CSS.CSS_Color.AuxiliaryColor2, - BorderWidth = (uint)Application.GetRealWidth(5), - TextColor = 0xFF000000, - TextAlignment = TextAlignment.Center, - Text = "閾炬帴钃濈墮" - }; - contentView.AddChidren(btn2); - btn2.MouseUpEventHandler = (d, d1) => - { - var blufiId = "1DA9BDF2-F12D-A63A-FC44-C28AE225DA6A"; - bc.ConnectionBlufi(blufiId); +// var btn2 = new Button() +// { +// Height = Application.GetRealHeight(60), +// BorderColor = CSS.CSS_Color.AuxiliaryColor2, +// BorderWidth = (uint)Application.GetRealWidth(5), +// TextColor = 0xFF000000, +// TextAlignment = TextAlignment.Center, +// Text = "閾炬帴钃濈墮" +// }; +// contentView.AddChidren(btn2); +// btn2.MouseUpEventHandler = (d, d1) => +// { +// var blufiId = "1DA9BDF2-F12D-A63A-FC44-C28AE225DA6A"; +// bc.ConnectionBlufi(blufiId); - }; - var btn3 = new Button() - { - Height = Application.GetRealHeight(60), - BorderColor = CSS.CSS_Color.AuxiliaryColor2, - BorderWidth = (uint)Application.GetRealWidth(5), - TextColor = 0xFF000000, - TextAlignment = TextAlignment.Center, - Text = "鍙戦�佹暟鎹�" - }; - contentView.AddChidren(btn3); - btn3.MouseUpEventHandler = (d, d1) => - { - bc.SendMsg("dddlasfjlaskjdflkasjkdfjhaskljdhfklajhf"); - }; +// }; +// var btn3 = new Button() +// { +// Height = Application.GetRealHeight(60), +// BorderColor = CSS.CSS_Color.AuxiliaryColor2, +// BorderWidth = (uint)Application.GetRealWidth(5), +// TextColor = 0xFF000000, +// TextAlignment = TextAlignment.Center, +// Text = "鍙戦�佹暟鎹�" +// }; +// contentView.AddChidren(btn3); +// btn3.MouseUpEventHandler = (d, d1) => +// { +// bc.SendMsg("dddlasfjlaskjdflkasjkdfjhaskljdhfklajhf"); +// }; - var btn4 = new Button() - { - Height = Application.GetRealHeight(60), - BorderColor = CSS.CSS_Color.AuxiliaryColor2, - BorderWidth = (uint)Application.GetRealWidth(5), - TextColor = 0xFF000000, - TextAlignment = TextAlignment.Center, - Text = "鏂紑钃濈墮閾炬帴" - }; - contentView.AddChidren(btn4); - btn4.MouseUpEventHandler = (d, d1) => - { - bc.CloseConnectionBlufi(); - }; +// var btn4 = new Button() +// { +// Height = Application.GetRealHeight(60), +// BorderColor = CSS.CSS_Color.AuxiliaryColor2, +// BorderWidth = (uint)Application.GetRealWidth(5), +// TextColor = 0xFF000000, +// TextAlignment = TextAlignment.Center, +// Text = "鏂紑钃濈墮閾炬帴" +// }; +// contentView.AddChidren(btn4); +// btn4.MouseUpEventHandler = (d, d1) => +// { +// bc.CloseConnectionBlufi(); +// }; - } - #endregion +// } +// #endregion - dialog.Show(); - } +// dialog.Show(); +// } - } -} +// } +//} -- Gitblit v1.8.0