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/YkqPage.cs | 1326 +++++++++++++++++++++++++++++++++++++++++++++++++--------
 1 files changed, 1,141 insertions(+), 185 deletions(-)

diff --git a/HDL_ON/UI/UI2/FuntionControlView/Aks/YkqPage.cs b/HDL_ON/UI/UI2/FuntionControlView/Aks/YkqPage.cs
index 808dbea..e246608 100644
--- a/HDL_ON/UI/UI2/FuntionControlView/Aks/YkqPage.cs
+++ b/HDL_ON/UI/UI2/FuntionControlView/Aks/YkqPage.cs
@@ -2,35 +2,87 @@
 using System.Collections.Generic;
 using HDL_ON.UI.Music;
 using HDL_ON.UI.UI2.FuntionControlView.Aks.CommonView;
+using HDL_ON.UI.UI2.FuntionControlView.Aks.Entity;
+using HDL_ON.UI.UI2.FuntionControlView.VideoDoorLock;
 using Shared;
 using static HDL_ON.UI.UI2.FuntionControlView.Aks.AksPage;
 namespace HDL_ON.UI.UI2.FuntionControlView.Aks
 {
     /// <summary>
-    ///閬ユ帶鍣ㄧ晫闈�
+    ///铏氭嫙閬ユ帶鍣ㄧ晫闈�
     /// </summary>
     public class YkqPage : BaseFramLayout
     {
-        public YkqPage()
+        /// <summary>
+        /// 
+        /// </summary>
+        /// <param name="remoteControlEntity">閬ユ帶鍣ㄥ璞�</param>
+        /// <param name="sequencerList">鏃跺簭鍣ㄥ垪琛�</param>
+        public YkqPage(RemoteControlEntity remoteControlEntity, List<SequencerEntity> sequencerList)
         {
+            this.remoteControl = remoteControlEntity;
+            this.sequencerList = sequencerList;
         }
+        /// <summary>
+        /// 鏃跺簭鍣ㄥ垪琛�
+        /// </summary>
+        private List<SequencerEntity> sequencerList;
+        /// <summary>
+        /// 褰撳墠鐨勯仴鎺у櫒瀵硅薄
+        /// </summary>
+        private RemoteControlEntity remoteControl;
         public Action<IntType> action;
-        /// <summary>
-        /// 鏈�涓婇潰鍔熻兘閿鍣�
-        /// </summary>
-        CornerFramLayout cornerTopFram;
-        /// <summary>
-        /// 鏁板瓧鎸夐敭瀹瑰櫒
-        /// </summary>
-        CornerFramLayout numberFrame;
-        /// <summary>
-        /// 鑿滃崟瀹瑰櫒
-        /// </summary>
-        MenuFramLayout menuFram;
         /// <summary>
         /// 鍒囨崲璁惧瀹瑰櫒
         /// </summary>
         TypeMultiFramLayout typeMultiFramLayout;
+        TypeSingleFramLayout tyySingleFramLayout;
+
+        Button switchBtn;
+        CustomFrameLayout xinxiFL;
+        CustomFrameLayout shoucangFL;
+        CustomFrameLayout dianyingFL;
+        CustomFrameLayout yuleFL;
+        CustomFrameLayout dianshiFL;
+        CustomFrameLayout redFL;
+        CustomFrameLayout yellowFL;
+        CustomFrameLayout blueFL;
+        CustomFrameLayout number1FL;
+        CustomFrameLayout number2FL;
+        CustomFrameLayout number3FL;
+        CustomFrameLayout number4FL;
+        CustomFrameLayout number5FL;
+        CustomFrameLayout number6FL;
+        CustomFrameLayout number7FL;
+        CustomFrameLayout number8FL;
+        CustomFrameLayout number9FL;
+        CustomFrameLayout yinguiFL;
+        CustomFrameLayout number0FL;
+        CustomFrameLayout zimuFL;
+        CustomFrameLayout jingyinFL;
+        CustomFrameLayout toupingFL;
+        CustomFrameLayout zhuyeFL;
+        FrameLayout okFl;
+        Button btnLeft;
+        Button btnShang;
+        Button btnRight;
+        Button btnXia;
+        Button btnOk;
+        Button btnYingliangjia;
+        Button btnYingliangjian;
+        Button btnPindaojia;
+        Button btnPindaojian;
+        CustomFrameLayout caidanFL;
+        CustomFrameLayout fanhuiFL;
+        CustomFrameLayout shanyibuFL;
+        CustomFrameLayout bofangFL;
+        CustomFrameLayout xiayibuFL;
+        CustomFrameLayout kuaituiFL;
+        CustomFrameLayout zantingFL;
+        CustomFrameLayout kusinjinFL;
+        CustomFrameLayout dengguanFL;
+        CustomFrameLayout tingzhiFL;
+        CustomFrameLayout dankongdengFL;
 
 
         public void Show()
@@ -53,60 +105,295 @@
         /// </summary>
         private void EventListener()
         {
-            //鍔熻兘閿帶鍒�
-            cornerTopFram.selectAction += (value) =>
+            //寮�鍏�
+            switchBtn.MouseUpEventHandler += (senser, e) =>
             {
-                Console.WriteLine("1");
+                KeyControl("on_off", "寮�/鍏�");
+                this.SetButtonIsSelected(switchBtn);
             };
-            //鏁板瓧閿帶鍒�
-            numberFrame.selectAction += (s) =>
+            //淇℃伅
+            xinxiFL.SetClickListener(() =>
             {
-                Console.WriteLine("鎵撳嵃====" + s);
-            };
-            //鑿滃崟涓婃寜閿�
-            menuFram.SetTopClickListener((b) =>
-            {
-
-                Console.WriteLine("5");
+                KeyControl("info", "淇℃伅");
             });
-            //鑿滃崟涓嬫寜閿�
-            menuFram.SetBottomClickListener((b) =>
+            //鏀惰棌
+            shoucangFL.SetClickListener(() =>
             {
-                Console.WriteLine("6");
+                KeyControl("collect", "鏀惰棌");
             });
-            //鑿滃崟宸︽寜閿�
-            menuFram.SetLeftClickListener((b) =>
+            //鐢靛奖
+            dianyingFL.SetClickListener(() =>
             {
-                Console.WriteLine("7");
+                KeyControl("movie", "鐢靛奖");
             });
-            //鑿滃崟鍙虫寜閿�
-            menuFram.SetRightClickListener((b) =>
+            //濞变箰
+            yuleFL.SetClickListener(() =>
             {
-                Console.WriteLine("8");
+                KeyControl("recreation", "濞变箰");
             });
-            //鑿滃崟ok鎸夐敭
-            menuFram.SetOkClickListener((b) =>
+            //鐢佃
+            dianshiFL.SetClickListener(() =>
             {
-                Console.WriteLine("9");
+                KeyControl("tv", "鐢佃");
             });
-            //鏃跺簭鍣�
-            typeMultiFramLayout.SetLeftFlClickListener((f) =>
+            //绾㈣壊
+            redFL.SetClickListener(() =>
             {
-                SxqPage sxqPage = new SxqPage();
-                MainPage.BasePageView.AddChidren(sxqPage);
-                MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
-                sxqPage.Show();
+                KeyControl("red", "绾㈣壊");
+            });
+            //榛勮壊
+            yellowFL.SetClickListener(() =>
+            {
+                KeyControl("yellow", "榛勮壊");
+            });
+            //钃濊壊
+            blueFL.SetClickListener(() =>
+            {
+                KeyControl("blue", "钃濊壊");
+            });
+            //1
+            number1FL.SetClickListener(() =>
+            {
+                KeyControl("number_1", "1");
+            });
+            //2
+            number2FL.SetClickListener(() =>
+            {
+                KeyControl("number_2", "2");
+            });
+            //3
+            number3FL.SetClickListener(() =>
+            {
+                KeyControl("number_3", "3");
 
             });
-            //璁惧鍒囨崲
-            typeMultiFramLayout.SetRightFlClickListener((f) =>
+            //4
+            number4FL.SetClickListener(() =>
             {
-                Console.WriteLine("4");
-                action?.Invoke(IntType.TV);
+                KeyControl("number_4", "4");
+
             });
+            //5
+            number5FL.SetClickListener(() =>
+            {
+                KeyControl("number_5", "5");
+
+            });
+            //6
+            number6FL.SetClickListener(() =>
+            {
+                KeyControl("number_6", "6");
+            });
+            //7
+            number7FL.SetClickListener(() =>
+            {
+                KeyControl("number_7", "7");
+            });
+            //8
+            number8FL.SetClickListener(() =>
+            {
+                KeyControl("number_8", "8");
+            });
+            //9
+            number9FL.SetClickListener(() =>
+            {
+                KeyControl("number_9", "9");
+
+            });
+
+            //闊宠建
+            yinguiFL.SetClickListener(() =>
+            {
+                KeyControl("audio_track", "闊宠建");
+            });
+            //0
+            number0FL.SetClickListener(() =>
+            {
+                KeyControl("number_0", "0");
+
+            });
+            //瀛楀箷
+            zimuFL.SetClickListener(() =>
+            {
+                KeyControl("subtitle", "瀛楀箷");
+
+            });
+            //闈欓煶
+            jingyinFL.SetClickListener(() =>
+            {
+                KeyControl("mute", "闈欓煶");
+
+            });
+            //鎶曞睆
+            toupingFL.SetClickListener(() =>
+            {
+                KeyControl("main", "鎶曞睆");
+
+            });
+            //涓婚〉
+            zhuyeFL.SetClickListener(() =>
+            {
+                KeyControl("home", "涓婚〉");
+
+            });
+            //宸�
+            btnLeft.MouseUpEventHandler += (sender, e) =>
+            {
+               
+                KeyControl("key_left", "宸�");
+                this.SetHighlightImagePath(okFl, "AksIcon/ykq_left_selected.png", "AksIcon/ykq_ok.png");
+
+            };
+            //涓�
+            btnShang.MouseUpEventHandler += (sender, e) =>
+            {
+                KeyControl("key_up", "涓�");
+                this.SetHighlightImagePath(okFl, "AksIcon/ykq_shang_selected.png", "AksIcon/ykq_ok.png");
+
+            };
+
+            //鍙�
+            btnRight.MouseDownEventHandler += (sender, e) =>
+            {
+
+           
+                KeyControl("key_right", "鍙�");
+                this.SetHighlightImagePath(okFl, "AksIcon/ykq_right_selected.png", "AksIcon/ykq_ok.png");
+
+            };
+
+            //涓�
+            btnXia.MouseUpEventHandler += (sender, e) =>
+            {
+               
+
+                KeyControl("key_down", "涓�");
+                this.SetHighlightImagePath(okFl, "AksIcon/ykq_xia_selected.png", "AksIcon/ykq_ok.png");
+            };
+            //OK
+            btnOk.MouseDownEventHandler += (sender, e) =>
+            {
+
+                KeyControl("key_ok", "纭畾");
+                this.SetHighlightImagePath(okFl, "AksIcon/ykq_ok_selected.png", "AksIcon/ykq_ok.png");
+            };
+            //闊抽噺+
+            btnYingliangjia.MouseUpEventHandler += (sen, e) =>
+            {
+                KeyControl("volume_up", "闊抽噺+");
+                this.SetButtonIsSelected(btnYingliangjia);
+            };
+            //闊抽噺-
+            btnYingliangjian.MouseUpEventHandler += (sen, e) =>
+            {
+                KeyControl("volume_down", "闊抽噺-");
+                this.SetButtonIsSelected(btnYingliangjian);
+            };
+            //棰戦亾+
+            btnPindaojia.MouseUpEventHandler += (sen, e) =>
+            {
+                KeyControl("ch_up", "棰戦亾+");
+                this.SetButtonIsSelected(btnPindaojia);
+            };
+            //棰戦亾-
+            btnPindaojian.MouseUpEventHandler += (sen, e) =>
+            {
+                KeyControl("ch_down", "棰戦亾-");
+                this.SetButtonIsSelected(btnPindaojian);
+            };
+
+            //鑿滃崟
+            caidanFL.SetClickListener(() =>
+            {
+                KeyControl("menu", "鑿滃崟");
+
+            });
+            //杩斿洖
+            fanhuiFL.SetClickListener(() =>
+            {
+                KeyControl("cancel", "杩斿洖");
+
+            });
+            //涓婁竴閮�
+            shanyibuFL.SetClickListener(() =>
+            {
+                KeyControl("part_up", "涓婁竴閮�");
+
+            });
+            //鎾斁
+            bofangFL.SetClickListener(() =>
+            {
+                KeyControl("play", "鎾斁");
+
+            });
+            //涓嬩竴閮�
+            xiayibuFL.SetClickListener(() =>
+            {
+                KeyControl("part_down", "涓嬩竴閮�");
+            });
+            //蹇��
+            kuaituiFL.SetClickListener(() =>
+            {
+                KeyControl("fast_rewind", "蹇��");
+            });
+            //鏆傚仠
+            zantingFL.SetClickListener(() =>
+            {
+                KeyControl("pause", "鏆傚仠");
+            });
+            //蹇繘
+            kusinjinFL.SetClickListener(() =>
+            {
+                KeyControl("fast_forward", "蹇繘");
+            });
+            //鐏叧
+            dengguanFL.SetClickListener(() =>
+            {
+                KeyControl("lamp", "鐏叧");
+
+            });
+            //鍋滄
+            tingzhiFL.SetClickListener(() =>
+            {
+                KeyControl("stop", "鍋滄");
+
+            });
+            //鍗曟帶鐏�
+            dankongdengFL.SetClickListener(() =>
+            {
+                KeyControl("lamp_plc", "鍗曟帶鐏�");
+
+            });
+
+            if (typeMultiFramLayout != null)
+            {
+                //鏃跺簭鍣�
+                typeMultiFramLayout.SetLeftFlClickListener((f) =>
+                {
+                    SxqPage sxqPage = new SxqPage(this.sequencerList, this.remoteControl.deviceId);
+                    MainPage.BasePageView.AddChidren(sxqPage);
+                    MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
+                    sxqPage.Show();
+
+                });
+                //璁惧鍒囨崲
+                typeMultiFramLayout.SetRightFlClickListener((f) =>
+                {
+                    action?.Invoke(IntType.Control);
+                });
+            }
+            if (tyySingleFramLayout != null)
+            {
+                tyySingleFramLayout.SetClickListener((f) =>
+                {
+                    action?.Invoke(IntType.Control);
+                });
+            }
 
         }
-
+        /// <summary>
+        /// 鍒濆鍖栫晫闈�
+        /// </summary>
         private void InitUI()
         {
             this.BackgroundColor = MusicColor.ViewColor;
@@ -119,194 +406,863 @@
                 TextAlignment = TextAlignment.CenterLeft,
                 TextColor = MusicColor.TextColor,
                 TextSize = TextSize.Text16,
-                TextID = StringId.xuniyaokongqi,
+                Text = this.remoteControl.name,
+                IsBold = true,
             };
             this.AddChidren(btnTitle);
 
-            FrameLayout layout = new FrameLayout {
+
+            FrameLayout bottomLayout = new FrameLayout
+            {
                 Y = btnTitle.Bottom + Application.GetRealHeight(16),
-                X=Application.GetRealWidth(71),
-                Width=Application.GetRealWidth(232),
-                Radius=(uint)Application.GetRealHeight(17),
-                BackgroundColor= 0xff19181E,
+                Width = Application.GetRealWidth(240),
+                Height = Application.GetRealHeight(1095 - 122 - 60),//閬ユ帶鍣ㄥ浐瀹氶珮搴�
+                Radius = (uint)Application.GetRealHeight(17),
+                BackgroundColor = 0xff798394,
+                Gravity = Gravity.CenterHorizontal,
+            };
+            this.AddChidren(bottomLayout);
+
+
+            FrameLayout layout = new FrameLayout
+            {
+                Y = btnTitle.Bottom + Application.GetRealHeight(16),
+                //X = Application.GetRealWidth(71),
+                Width = Application.GetRealWidth(232),
+                Height = Application.GetRealHeight(1095 - 122 - 60),//閬ユ帶鍣ㄥ浐瀹氶珮搴�
+                Radius = (uint)Application.GetRealHeight(17),
+                BackgroundColor = 0xff19181E,
+                Gravity = Gravity.CenterHorizontal,
+
             };
             this.AddChidren(layout);
 
 
-
-
-
-            cornerTopFram = new CornerFramLayout(343, 452, 17);
-            cornerTopFram.X = Application.GetRealWidth(16);
-            cornerTopFram.Y = btnTitle.Bottom + Application.GetRealHeight(16);
-            this.AddChidren(cornerTopFram);
-            cornerTopFram.SetList(cornerTopFram.GetTestList(17));
-            cornerTopFram.SetMargin(16, 0, 16, 0);
-            cornerTopFram.LoadButtonPage(new List<int> { 5, 6 });
-
-            #region  ----棰戦亾 鎺у埗----
-            FrameLayout middLayout = new FrameLayout
+            FrameLayout switchFl = new FrameLayout()
             {
-                Y = cornerTopFram.Bottom,
-                Height = Application.GetRealHeight(61),
+                Y = Application.GetRealHeight(32),
+                Height = Application.GetRealWidth(48),
+                Width = Application.GetRealWidth(48),
+                Gravity = Gravity.CenterHorizontal,
+                BackgroundColor = 0xff201F25,
+                Radius = (uint)Application.GetRealWidth(24),
+
             };
-            this.AddChidren(middLayout);
+            layout.AddChidren(switchFl);
 
-            FrameLayout leftLayout = new FrameLayout
+            switchBtn = new Button
             {
-                X = Application.GetRealWidth(105),
+                Height = Application.GetRealWidth(48),
+                Width = Application.GetRealWidth(48),
+                Gravity = Gravity.Center,
+                UnSelectedImagePath = "AksIcon/ykq_kai.png",
+                SelectedImagePath = "AksIcon/ykq_kaiguang_selected.png"
+            };
+            switchFl.AddChidren(switchBtn);
+            switchBtn.MouseDownEventHandler += (senser, e) =>
+            {
+                switchBtn.IsSelected = true;
+            };
+            switchBtn.MouseUpOutsideEventHandler += (senser, e) =>
+            {
+                switchBtn.IsSelected = false;
+            };
+
+            int h = 49 - 6;
+            int offset = 28;//x杞村亸绉婚噺
+            int septal = 36;//闂撮殧
+            #region
+            var line1Fl = new FrameLayout
+            {
+                Y = switchFl.Bottom + Application.GetRealHeight(12),
+                Height = Application.GetRealHeight(h),
+            };
+            layout.AddChidren(line1Fl);
+
+
+            xinxiFL = new CustomFrameLayout();
+            line1Fl.AddChidren(xinxiFL);
+            xinxiFL.X = Application.GetRealWidth(offset);
+            xinxiFL.AddImageView();
+            xinxiFL.AddTextButtonView();
+            xinxiFL.GetImageButton().UnSelectedImagePath = "AksIcon/ykq_xinxi.png";
+            xinxiFL.GetImageButton().SelectedImagePath = "AksIcon/ykq_xinxi_selected.png";
+            xinxiFL.GetTextButton().Text = "淇℃伅";
+            xinxiFL.AddClickView();
+
+
+            shoucangFL = new CustomFrameLayout();
+            line1Fl.AddChidren(shoucangFL);
+            shoucangFL.X = xinxiFL.Right + Application.GetRealWidth(110);
+            shoucangFL.AddImageView();
+            shoucangFL.AddTextButtonView();
+            shoucangFL.GetImageButton().UnSelectedImagePath = "AksIcon/ykq_shoucang.png";
+            shoucangFL.GetImageButton().SelectedImagePath = "AksIcon/ykq_shoucang_selected.png";
+            shoucangFL.GetTextButton().Text = "鏀惰棌";
+            shoucangFL.AddClickView();
+
+
+            var line2Fl = new FrameLayout
+            {
+                Y = line1Fl.Bottom + Application.GetRealHeight(8),
+                Height = Application.GetRealHeight(h),
+            };
+            layout.AddChidren(line2Fl);
+
+            dianyingFL = new CustomFrameLayout();
+            line2Fl.AddChidren(dianyingFL);
+            dianyingFL.X = Application.GetRealWidth(offset);
+            dianyingFL.AddImageView();
+            dianyingFL.AddTextButtonView();
+            dianyingFL.GetImageButton().UnSelectedImagePath = "AksIcon/ykq_dianying.png";
+            dianyingFL.GetImageButton().SelectedImagePath = "AksIcon/ykq_dianying_selected.png";
+            dianyingFL.GetTextButton().Text = "鐢靛奖";
+            dianyingFL.AddClickView();
+
+
+            yuleFL = new CustomFrameLayout();
+            line2Fl.AddChidren(yuleFL);
+            yuleFL.X = dianyingFL.Right + Application.GetRealWidth(septal);
+            yuleFL.AddImageView();
+            yuleFL.AddTextButtonView();
+            yuleFL.GetImageButton().UnSelectedImagePath = "AksIcon/ykq_yule.png";
+            yuleFL.GetImageButton().SelectedImagePath = "AksIcon/ykq_yule_selected.png";
+            yuleFL.GetTextButton().Text = "濞变箰";
+            yuleFL.AddClickView();
+
+            dianshiFL = new CustomFrameLayout();
+            line2Fl.AddChidren(dianshiFL);
+            dianshiFL.X = yuleFL.Right + Application.GetRealWidth(septal);
+            dianshiFL.AddImageView();
+            dianshiFL.AddTextButtonView();
+            dianshiFL.GetImageButton().UnSelectedImagePath = "AksIcon/ykq_dianshi.png";
+            dianshiFL.GetImageButton().SelectedImagePath = "AksIcon/ykq_dianshi_selected.png";
+            dianshiFL.GetTextButton().Text = "鐢佃";
+            dianshiFL.AddClickView();
+
+
+
+            var line3Fl = new FrameLayout
+            {
+                Y = line2Fl.Bottom + Application.GetRealHeight(8),
+                Height = Application.GetRealHeight(h),
+            };
+            layout.AddChidren(line3Fl);
+
+            redFL = new CustomFrameLayout();
+            line3Fl.AddChidren(redFL);
+            redFL.X = Application.GetRealWidth(offset);
+            redFL.AddColorButtonView();
+            redFL.GetColorButto().BackgroundColor = MusicColor.RedColor;
+            redFL.AddClickView();
+
+
+            yellowFL = new CustomFrameLayout();
+            line3Fl.AddChidren(yellowFL);
+            yellowFL.X = redFL.Right + Application.GetRealWidth(septal);
+            yellowFL.AddColorButtonView();
+            yellowFL.GetColorButto().BackgroundColor = 0xffFC9C04;
+            yellowFL.AddClickView();
+
+
+            blueFL = new CustomFrameLayout();
+            line3Fl.AddChidren(blueFL);
+            blueFL.X = yellowFL.Right + Application.GetRealWidth(septal);
+            blueFL.AddColorButtonView();
+            blueFL.GetColorButto().BackgroundColor = MusicColor.MusicTxet14SelectedColor;
+            blueFL.AddClickView();
+
+
+
+
+            var line4Fl = new FrameLayout
+            {
+                Y = line3Fl.Bottom + Application.GetRealHeight(8),
+                Height = Application.GetRealHeight(h),
+            };
+            layout.AddChidren(line4Fl);
+
+            number1FL = new CustomFrameLayout();
+            line4Fl.AddChidren(number1FL);
+            number1FL.X = Application.GetRealWidth(offset);
+            number1FL.AddNumberButtonView();
+            number1FL.GetNumberButto().Text = "1";
+            number1FL.AddClickView();
+
+
+            number2FL = new CustomFrameLayout();
+            line4Fl.AddChidren(number2FL);
+            number2FL.X = number1FL.Right + Application.GetRealWidth(septal);
+            number2FL.AddNumberButtonView();
+            number2FL.GetNumberButto().Text = "2";
+            number2FL.AddClickView();
+
+
+            number3FL = new CustomFrameLayout();
+            line4Fl.AddChidren(number3FL);
+            number3FL.X = number2FL.Right + Application.GetRealWidth(septal);
+            number3FL.AddNumberButtonView();
+            number3FL.GetNumberButto().Text = "3";
+            number3FL.AddClickView();
+
+
+
+
+
+            var line5Fl = new FrameLayout
+            {
+                Y = line4Fl.Bottom,
+                Height = Application.GetRealHeight(h),
+            };
+            layout.AddChidren(line5Fl);
+
+            number4FL = new CustomFrameLayout();
+            line5Fl.AddChidren(number4FL);
+            number4FL.X = Application.GetRealWidth(offset);
+            number4FL.AddNumberButtonView();
+            number4FL.GetNumberButto().Text = "4";
+            number4FL.AddClickView();
+
+
+
+
+            number5FL = new CustomFrameLayout();
+            line5Fl.AddChidren(number5FL);
+            number5FL.X = number4FL.Right + Application.GetRealWidth(septal);
+            number5FL.AddNumberButtonView();
+            number5FL.GetNumberButto().Text = "5";
+            number5FL.AddClickView();
+
+
+            number6FL = new CustomFrameLayout();
+            line5Fl.AddChidren(number6FL);
+            number6FL.X = number5FL.Right + Application.GetRealWidth(septal);
+            number6FL.AddNumberButtonView();
+            number6FL.GetNumberButto().Text = "6";
+            number6FL.AddClickView();
+
+
+
+
+            var line6Fl = new FrameLayout
+            {
+                Y = line5Fl.Bottom,
+                Height = Application.GetRealHeight(h),
+            };
+            layout.AddChidren(line6Fl);
+
+            number7FL = new CustomFrameLayout();
+            line6Fl.AddChidren(number7FL);
+            number7FL.X = Application.GetRealWidth(offset);
+            number7FL.AddNumberButtonView();
+            number7FL.GetNumberButto().Text = "7";
+            number7FL.AddClickView();
+
+
+            number8FL = new CustomFrameLayout();
+            line6Fl.AddChidren(number8FL);
+            number8FL.X = number7FL.Right + Application.GetRealWidth(septal);
+            number8FL.AddNumberButtonView();
+            number8FL.GetNumberButto().Text = "8";
+            number8FL.AddClickView();
+
+
+            number9FL = new CustomFrameLayout();
+            line6Fl.AddChidren(number9FL);
+            number9FL.X = number8FL.Right + Application.GetRealWidth(septal);
+            number9FL.AddNumberButtonView();
+            number9FL.GetNumberButto().Text = "9";
+            number9FL.AddClickView();
+
+
+
+            var line7Fl = new FrameLayout
+            {
+                Y = line6Fl.Bottom,
+                Height = Application.GetRealHeight(h),
+            };
+            layout.AddChidren(line7Fl);
+
+            yinguiFL = new CustomFrameLayout();
+            line7Fl.AddChidren(yinguiFL);
+            yinguiFL.X = Application.GetRealWidth(offset);
+            yinguiFL.AddImageView();
+            yinguiFL.AddTextButtonView();
+            yinguiFL.GetImageButton().UnSelectedImagePath = "AksIcon/ykq_yingui.png";
+            yinguiFL.GetImageButton().SelectedImagePath = "AksIcon/ykq_yingui_selected.png";
+            yinguiFL.GetTextButton().Text = "闊宠建";
+            yinguiFL.AddClickView();
+
+
+            number0FL = new CustomFrameLayout();
+            line7Fl.AddChidren(number0FL);
+            number0FL.X = yinguiFL.Right + Application.GetRealWidth(septal);
+            number0FL.AddNumberButtonView();
+            number0FL.GetNumberButto().Text = "0";
+            number0FL.AddClickView();
+
+
+            zimuFL = new CustomFrameLayout();
+            line7Fl.AddChidren(zimuFL);
+            zimuFL.X = number0FL.Right + Application.GetRealWidth(septal);
+            zimuFL.AddImageView();
+            zimuFL.AddTextButtonView();
+            zimuFL.GetImageButton().UnSelectedImagePath = "AksIcon/ykq_zimu.png";
+            zimuFL.GetImageButton().SelectedImagePath = "AksIcon/ykq_zimu_selected.png";
+            zimuFL.GetTextButton().Text = "瀛楀箷";
+            zimuFL.AddClickView();
+            zimuFL.AddClickView();
+
+
+
+
+
+            var line8Fl = new FrameLayout
+            {
+                Y = line7Fl.Bottom + Application.GetRealHeight(16),
+                Height = Application.GetRealHeight(h),
+            };
+            layout.AddChidren(line8Fl);
+
+            jingyinFL = new CustomFrameLayout();
+            line8Fl.AddChidren(jingyinFL);
+            jingyinFL.X = Application.GetRealWidth(offset);
+            jingyinFL.AddImageView();
+            jingyinFL.AddTextButtonView();
+            jingyinFL.GetImageButton().UnSelectedImagePath = "AksIcon/ykq_jingyin.png";
+            jingyinFL.GetImageButton().SelectedImagePath = "AksIcon/ykq_jingyin_selected.png";
+            jingyinFL.GetTextButton().Text = "闈欓煶";
+            jingyinFL.AddClickView();
+
+
+            toupingFL = new CustomFrameLayout();
+            line8Fl.AddChidren(toupingFL);
+            toupingFL.X = jingyinFL.Right + Application.GetRealWidth(septal);
+            toupingFL.AddImageView();
+            toupingFL.AddTextButtonView();
+            toupingFL.GetImageButton().UnSelectedImagePath = "AksIcon/ykq_toupin.png";
+            toupingFL.GetImageButton().SelectedImagePath = "AksIcon/ykq_touping_selected.png";
+            toupingFL.GetTextButton().Text = "鎶曞睆";
+            toupingFL.AddClickView();
+
+
+            zhuyeFL = new CustomFrameLayout();
+            line8Fl.AddChidren(zhuyeFL);
+            zhuyeFL.X = toupingFL.Right + Application.GetRealWidth(septal);
+            zhuyeFL.AddImageView();
+            zhuyeFL.AddTextButtonView();
+            zhuyeFL.GetImageButton().UnSelectedImagePath = "AksIcon/ykq_zhuye.png";
+            zhuyeFL.GetImageButton().SelectedImagePath = "AksIcon/ykq_zhuye_selected.png";
+            zhuyeFL.GetTextButton().Text = "涓婚〉";
+            zhuyeFL.AddClickView();
+
+
+
+            #region   鑿滃崟甯冨眬
+
+
+            var baseFl = new BaseFramLayout
+            {
+                Y = line8Fl.Bottom,
+                Height = Application.GetRealHeight(207 - 32 - 12),
+            };
+            layout.AddChidren(baseFl);
+
+
+            btnYingliangjia = new Button
+            {
                 Y = Application.GetRealHeight(16),
-                Height = Application.GetRealHeight(29),
-                Width = Application.GetRealWidth(32),
-
+                X = Application.GetRealWidth(26),
+                Width = Application.GetRealWidth(36),
+                Height = Application.GetRealWidth(36),
+                UnSelectedImagePath = "AksIcon/ykq_yingliangjia.png",
+                SelectedImagePath = "AksIcon/ykq_yingliangjia_selected.png",
             };
-            middLayout.AddChidren(leftLayout);
+            baseFl.AddChidren(btnYingliangjia);
+           
 
 
-            Button leftBtnTitle = new Button
+            btnYingliangjian = new Button
             {
-                Height = Application.GetRealHeight(22),
-                Width = leftLayout.Width,
-                TextAlignment = TextAlignment.Center,
-                TextColor = MusicColor.TextColor,
-                SelectedTextColor = MusicColor.MusicTxet14SelectedColor,
-                TextSize = TextSize.Text16,
-                TextID = StringId.pindao,
+                Y = btnYingliangjia.Bottom + Application.GetRealHeight(71),
+                X = Application.GetRealWidth(26),
+                Width = Application.GetRealWidth(36),
+                Height = Application.GetRealWidth(36),
+                UnSelectedImagePath = "AksIcon/ykq_yingliangjian.png",
+                SelectedImagePath = "AksIcon/ykq_yingliangjian_selected.png",
             };
-            leftLayout.AddChidren(leftBtnTitle);
+            baseFl.AddChidren(btnYingliangjian);
+            
 
 
-            Button leftBtnLine = new Button
+            btnPindaojia = new Button
             {
-                Y = leftBtnTitle.Bottom + Application.GetRealHeight(4),
-                Height = Application.GetRealHeight(2),
-                Width = leftBtnTitle.GetTextWidth(),
-                BackgroundColor = MusicColor.TextColor,
-                SelectedBackgroundColor = MusicColor.MusicTxet14SelectedColor,
+                Y = Application.GetRealHeight(16),
+                X = Application.GetRealWidth(170),
+                Width = Application.GetRealWidth(36),
+                Height = Application.GetRealWidth(36),
+                UnSelectedImagePath = "AksIcon/ykq_pindaojia.png",
+                SelectedImagePath = "AksIcon/ykq_pindaojia_selected.png",
+            };
+            baseFl.AddChidren(btnPindaojia);
+           
+
+
+            btnPindaojian = new Button
+            {
+                Y = btnPindaojia.Bottom + Application.GetRealHeight(71),
+                X = Application.GetRealWidth(170),
+                Width = Application.GetRealWidth(36),
+                Height = Application.GetRealWidth(36),
+                UnSelectedImagePath = "AksIcon/ykq_pindaojian.png",
+                SelectedImagePath = "AksIcon/ykq_pindaojian_selected.png",
+            };
+            baseFl.AddChidren(btnPindaojian);
+           
+
+
+
+            okFl = new FrameLayout
+            {
+                Y = Application.GetRealHeight(16),
+                Height = Application.GetRealWidth(143),
+                Width = Application.GetRealWidth(143),
+                BackgroundImagePath = "AksIcon/ykq_ok.png",
                 Gravity = Gravity.CenterHorizontal,
             };
-            leftLayout.AddChidren(leftBtnLine);
-            //棰戦亾鐐瑰嚮鎺т欢
-            FrameLayout clickLeftLayout = new FrameLayout
+            baseFl.AddChidren(okFl);
+
+
+            btnLeft = new Button
             {
-                Height = leftLayout.Height,
-                Width = leftLayout.Width,
+                Width = Application.GetRealWidth(40),
+                Height = Application.GetRealHeight(20),
+                Gravity = Gravity.CenterVertical,
             };
-            leftLayout.AddChidren(clickLeftLayout);
+
+            okFl.AddChidren(btnLeft);
 
 
-            FrameLayout rightLayout = new FrameLayout
+
+
+            btnShang = new Button
             {
-                X = leftLayout.Right + Application.GetRealWidth(100),
-                Y = leftLayout.Y,
-                Height = leftLayout.Height,
-                Width = leftLayout.Width,
-            };
-            middLayout.AddChidren(rightLayout);
-
-
-            Button rightBtnTitle = new Button
-            {
-                Height = Application.GetRealHeight(22),
-                Width = rightLayout.Width,
-                TextAlignment = TextAlignment.Center,
-                TextColor = MusicColor.TextColor,
-                SelectedTextColor = MusicColor.MusicTxet14SelectedColor,
-                TextSize = TextSize.Text16,
-                TextID = StringId.kongzhi,
-            };
-            rightLayout.AddChidren(rightBtnTitle);
-
-            Button rightBtnLine = new Button
-            {
-                Y = rightBtnTitle.Bottom + Application.GetRealHeight(4),
-                Height = Application.GetRealHeight(2),
-                Width = rightBtnTitle.GetTextWidth(),
-                BackgroundColor = MusicColor.TextColor,
-                SelectedBackgroundColor = MusicColor.MusicTxet14SelectedColor,
+                Width = Application.GetRealWidth(40),
+                Height = Application.GetRealHeight(30),
                 Gravity = Gravity.CenterHorizontal,
             };
-            rightLayout.AddChidren(rightBtnLine);
 
-            //鐢佃鐐瑰嚮鎺т欢
-            FrameLayout clickRightLayout = new FrameLayout
+            okFl.AddChidren(btnShang);
+
+            btnRight = new Button
             {
-                Height = leftLayout.Height,
-                Width = leftLayout.Width,
+                Width = Application.GetRealWidth(40),
+                Height = Application.GetRealHeight(20),
+                Gravity = Gravity.CenterRight,
             };
-            rightLayout.AddChidren(clickRightLayout);
+
+            okFl.AddChidren(btnRight);
+
+            btnXia = new Button
+            {
+                Width = Application.GetRealWidth(40),
+                Height = Application.GetRealHeight(30),
+                Gravity = Gravity.BottomCenter,
+            };
+            okFl.AddChidren(btnXia);
 
 
+
+            btnOk = new Button
+            {
+                Width = Application.GetRealWidth(52),
+                Height = Application.GetRealWidth(52),
+                Gravity = Gravity.Center,
+            };
+            okFl.AddChidren(btnOk);
 
             #endregion
 
 
-            //鏁板瓧鎸夐敭瀹瑰櫒
-            numberFrame = new CornerFramLayout(343, 368, 17);
-            numberFrame.X = Application.GetRealWidth(16);
-            numberFrame.Y = middLayout.Bottom + Application.GetRealHeight(16);
-            numberFrame.BackgroundColor = MusicColor.WhiteColor;
-            numberFrame.SetMargin(16, 0, 16, 0);
-            numberFrame.LoadNumberButtonPage();
-            this.AddChidren(numberFrame);
 
 
-            //鑿滃崟瀹瑰櫒
-            CornerFramLayout cornerBottomFram = new CornerFramLayout(343, 292, 17);
+            var line9Fl = new FrameLayout
+            {
+                Y = baseFl.Bottom,
+                Height = Application.GetRealHeight(h),
+            };
+            layout.AddChidren(line9Fl);
+
+            caidanFL = new CustomFrameLayout();
+            line9Fl.AddChidren(caidanFL);
+            caidanFL.X = Application.GetRealWidth(offset);
+            caidanFL.AddImageView();
+            caidanFL.AddTextButtonView();
+            caidanFL.GetImageButton().UnSelectedImagePath = "AksIcon/ykq_caidan.png";
+            caidanFL.GetImageButton().SelectedImagePath = "AksIcon/ykq_caidan_selected.png";
+            caidanFL.GetTextButton().Text = "鑿滃崟";
+            caidanFL.AddClickView();
+
+
+            fanhuiFL = new CustomFrameLayout();
+            line9Fl.AddChidren(fanhuiFL);
+            fanhuiFL.X = caidanFL.Right + Application.GetRealWidth(110);
+            fanhuiFL.AddImageView();
+            fanhuiFL.AddTextButtonView();
+            fanhuiFL.GetImageButton().UnSelectedImagePath = "AksIcon/ykq_fanhui.png";
+            fanhuiFL.GetImageButton().SelectedImagePath = "AksIcon/ykq_fanhui_selected.png";
+            fanhuiFL.GetTextButton().Text = "杩斿洖";
+            fanhuiFL.AddClickView();
+
+
+
+            var line10Fl = new FrameLayout
+            {
+                Y = line9Fl.Bottom + Application.GetRealHeight(8),
+                Height = Application.GetRealHeight(h),
+            };
+            layout.AddChidren(line10Fl);
+
+            shanyibuFL = new CustomFrameLayout();
+            line10Fl.AddChidren(shanyibuFL);
+            shanyibuFL.X = Application.GetRealWidth(offset);
+            shanyibuFL.AddImageView();
+            shanyibuFL.AddTextButtonView();
+            shanyibuFL.GetImageButton().UnSelectedImagePath = "AksIcon/ykq_shangyibu.png";
+            shanyibuFL.GetImageButton().SelectedImagePath = "AksIcon/ykq_shangyibu_selected.png";
+            shanyibuFL.GetTextButton().Text = "涓婁竴閮�";
+            shanyibuFL.AddClickView();
+
+
+            bofangFL = new CustomFrameLayout();
+            line10Fl.AddChidren(bofangFL);
+            bofangFL.X = shanyibuFL.Right + Application.GetRealWidth(septal);
+            bofangFL.AddImageView();
+            bofangFL.AddTextButtonView();
+            bofangFL.GetImageButton().UnSelectedImagePath = "AksIcon/ykq_bofan.png";
+            bofangFL.GetImageButton().SelectedImagePath = "AksIcon/ykq_bofan_selected.png";
+            bofangFL.GetTextButton().Text = "鎾斁";
+            bofangFL.AddClickView();
+
+
+            xiayibuFL = new CustomFrameLayout();
+            line10Fl.AddChidren(xiayibuFL);
+            xiayibuFL.X = bofangFL.Right + Application.GetRealWidth(septal);
+            xiayibuFL.AddImageView();
+            xiayibuFL.AddTextButtonView();
+            xiayibuFL.GetImageButton().UnSelectedImagePath = "AksIcon/ykq_xiayibu.png";
+            xiayibuFL.GetImageButton().SelectedImagePath = "AksIcon/ykq_xiayibu_selected.png";
+            xiayibuFL.GetTextButton().Text = "涓嬩竴閮�";
+            xiayibuFL.AddClickView();
+
+
+
+
+
+
+            var line11Fl = new FrameLayout
+            {
+                Y = line10Fl.Bottom + Application.GetRealHeight(8),
+                Height = Application.GetRealHeight(h),
+            };
+            layout.AddChidren(line11Fl);
+
+            kuaituiFL = new CustomFrameLayout();
+            line11Fl.AddChidren(kuaituiFL);
+            kuaituiFL.X = Application.GetRealWidth(offset);
+            kuaituiFL.AddImageView();
+            kuaituiFL.AddTextButtonView();
+            kuaituiFL.GetImageButton().UnSelectedImagePath = "AksIcon/ykq_kuaitui.png";
+            kuaituiFL.GetImageButton().SelectedImagePath = "AksIcon/ykq_kuaijin_selected.png";
+            kuaituiFL.GetTextButton().Text = "蹇��";
+            kuaituiFL.AddClickView();
+
+
+
+
+            zantingFL = new CustomFrameLayout();
+            line11Fl.AddChidren(zantingFL);
+            zantingFL.X = kuaituiFL.Right + Application.GetRealWidth(septal);
+            zantingFL.AddImageView();
+            zantingFL.AddTextButtonView();
+            zantingFL.GetImageButton().UnSelectedImagePath = "AksIcon/ykq_zanting.png";
+            zantingFL.GetImageButton().SelectedImagePath = "AksIcon/ykq_zanting_selected.png";
+            zantingFL.GetTextButton().Text = "鏆傚仠";
+            zantingFL.AddClickView();
+
+
+
+
+            kusinjinFL = new CustomFrameLayout();
+            line11Fl.AddChidren(kusinjinFL);
+            kusinjinFL.X = zantingFL.Right + Application.GetRealWidth(septal);
+            kusinjinFL.AddImageView();
+            kusinjinFL.AddTextButtonView();
+            kusinjinFL.GetImageButton().UnSelectedImagePath = "AksIcon/ykq_kuaijin.png";
+            kusinjinFL.GetImageButton().SelectedImagePath = "AksIcon/ykq_kuaitui_selected.png";
+            kusinjinFL.GetTextButton().Text = "蹇繘";
+            kusinjinFL.AddClickView();
+
+
+
+
+
+
+            var line12Fl = new FrameLayout
+            {
+                Y = line11Fl.Bottom + Application.GetRealHeight(8),
+                Height = Application.GetRealHeight(h),
+            };
+            layout.AddChidren(line12Fl);
+
+            dengguanFL = new CustomFrameLayout();
+            line12Fl.AddChidren(dengguanFL);
+            dengguanFL.X = Application.GetRealWidth(offset);
+            dengguanFL.AddImageView();
+            dengguanFL.AddTextButtonView();
+            dengguanFL.GetImageButton().UnSelectedImagePath = "AksIcon/ykq_dengguan.png";
+            dengguanFL.GetImageButton().SelectedImagePath = "AksIcon/ykq_dengguang_selected.png";
+            dengguanFL.GetTextButton().Text = "鐏厜1";
+            dengguanFL.AddClickView();
+
+
+            tingzhiFL = new CustomFrameLayout();
+            line12Fl.AddChidren(tingzhiFL);
+            tingzhiFL.X = dengguanFL.Right + Application.GetRealWidth(septal);
+            tingzhiFL.AddImageView();
+            tingzhiFL.AddTextButtonView();
+            tingzhiFL.GetImageButton().UnSelectedImagePath = "AksIcon/ykq_tingzhi.png";
+            tingzhiFL.GetImageButton().SelectedImagePath = "AksIcon/ykq_tingzhi_selected.png";
+            tingzhiFL.GetTextButton().Text = "鍋滄";
+            tingzhiFL.AddClickView();
+
+
+
+            dankongdengFL = new CustomFrameLayout();
+            line12Fl.AddChidren(dankongdengFL);
+            dankongdengFL.X = tingzhiFL.Right + Application.GetRealWidth(septal);
+            dankongdengFL.AddImageView();
+            dankongdengFL.AddTextButtonView();
+            dankongdengFL.GetImageButton().UnSelectedImagePath = "AksIcon/ykq_dankongdeng.png";
+            dankongdengFL.GetImageButton().SelectedImagePath = "AksIcon/ykq_dankongdeng_selected.png";
+            dankongdengFL.GetTextButton().Text = "鐏厜2";
+            dankongdengFL.AddClickView();
+
+            #endregion
+
+
+
+
+            //搴曢儴瀹瑰櫒
+            CornerFramLayout cornerBottomFram = new CornerFramLayout(343, 72, 17);
             cornerBottomFram.X = Application.GetRealWidth(16);
-            cornerBottomFram.Y = middLayout.Bottom + Application.GetRealHeight(16);
+            cornerBottomFram.Y = layout.Bottom + Application.GetRealHeight(16);
             cornerBottomFram.BackgroundColor = MusicColor.WhiteColor;
             this.AddChidren(cornerBottomFram);
 
-            menuFram = new MenuFramLayout();
-            menuFram.Y = Application.GetRealHeight(24);
-            menuFram.AddView(cornerBottomFram);
 
-            typeMultiFramLayout = new TypeMultiFramLayout();
-            typeMultiFramLayout.multiFramLayout.Y = menuFram.Bottom + Application.GetRealHeight(32);
-            typeMultiFramLayout.AddView(cornerBottomFram);
-            typeMultiFramLayout.btnBottonRightName.TextID = StringId.dianshi;
-
-            //鍒濆鍊�
-            leftBtnTitle.IsSelected = true;
-            leftBtnLine.IsSelected = true;
-            leftBtnLine.Visible = true;
-            rightBtnTitle.IsSelected = false;
-            rightBtnLine.IsSelected = false;
-            rightBtnLine.Visible = false;
-            numberFrame.Visible = true;
-            cornerBottomFram.Visible = false;
-
-            //棰戦亾鐐瑰嚮浜嬩欢
-            clickLeftLayout.MouseDownEventHandler += (sen, e) =>
+            if (sequencerList.Count == 0)
             {
-                leftBtnTitle.IsSelected = true;
-                leftBtnLine.IsSelected = true;
-                leftBtnLine.Visible = true;
-                rightBtnTitle.IsSelected = false;
-                rightBtnLine.IsSelected = false;
-                rightBtnLine.Visible = false;
-                numberFrame.Visible = true;
-                cornerBottomFram.Visible = false;
-                this.AdjustRealHeight(16);
+                //娌℃湁鏃跺簭鍣�
+                tyySingleFramLayout = new TypeSingleFramLayout();
+                tyySingleFramLayout.AddView(cornerBottomFram);
+                tyySingleFramLayout.singleFramLayout.X = Application.GetRealWidth(226);
+                tyySingleFramLayout.singleFramLayout.Width = Application.GetRealWidth(101);
+                tyySingleFramLayout.singleFramLayout.Gravity = Gravity.CenterVertical;
+                tyySingleFramLayout.btnName.Text = this.remoteControl.name;
+                tyySingleFramLayout.btnName.X = Application.GetRealWidth(16);
+                tyySingleFramLayout.btnName.Width = Application.GetRealWidth(48);
+                tyySingleFramLayout.btnRightImage.X = tyySingleFramLayout.btnName.Right + Application.GetRealWidth(8);
+                tyySingleFramLayout.btnRightImage.Width = Application.GetRealWidth(16);
+                tyySingleFramLayout.btnRightImage.Height = Application.GetRealWidth(16);
+                tyySingleFramLayout.btnRightImage.UnSelectedImagePath = "AksIcon/xuanze.png";
+                tyySingleFramLayout.btnRightImage.Gravity = Gravity.CenterVertical;
+                tyySingleFramLayout.btnLeftImage.Visible = false;
 
-            };
-            //鎺у埗鐐瑰嚮浜嬩欢
-            clickRightLayout.MouseDownEventHandler += (sen, e) =>
+                tyySingleFramLayout.CustomCalculationWidth(TypeSingleFramLayout.Orientation.right,
+                  tyySingleFramLayout.singleFramLayout,
+                  tyySingleFramLayout.btnName,
+                   tyySingleFramLayout.btnRightImage,
+                   48, 200);
+
+            }
+            else
             {
-                leftBtnTitle.IsSelected = false;
-                leftBtnLine.IsSelected = false;
-                leftBtnLine.Visible = false;
-                rightBtnTitle.IsSelected = true;
-                rightBtnLine.IsSelected = true;
-                rightBtnLine.Visible = true;
-                numberFrame.Visible = false;
-                cornerBottomFram.Visible = true;
-                this.AdjustRealHeight(-60);
 
-            };
+                typeMultiFramLayout = new TypeMultiFramLayout();
+                typeMultiFramLayout.multiFramLayout.Y = Application.GetRealHeight(16);
+                typeMultiFramLayout.AddView(cornerBottomFram);
+                typeMultiFramLayout.btnRightName.Text = this.remoteControl.name;
+            }
 
             this.AdjustRealHeight(16);
         }
+
+        /// <summary>
+        /// 鎸夐敭鎺у埗
+        /// </summary>
+        /// <param name="keypad"><鎸夐敭鏍囪瘑/param>
+        /// <param name="keyName"><鎸夐敭鍚嶇О(鎵撳嵃鐢ㄧ殑)/param>
+
+        private void KeyControl(string keypad, string keyName, bool isSupport = true)
+        {
+            //CommonMethod.Current.Loading.Start();
+            CommonMethod.Current.SunThread(() =>
+            {
+                try
+                {
+                    SendMethod.Current.KeypadExecute(remoteControl.deviceId, remoteControl.rcId, keypad, keyName, isSupport);
+                }
+                catch { }
+                finally
+                {
+                    CommonMethod.Current.MainThread(() =>
+                    {
+                        //CommonMethod.Current.Loading.Hide();
+                    });
+                }
+            });
+
+        }
+
+    }
+
+    /// <summary>
+    /// 鑷繁寮勪竴涓狥rameLayout
+    /// </summary>
+    class CustomFrameLayout : BaseFramLayout
+    {
+        public const int widthFrameLayout = 36;
+        public const int heightFrameLayout = 49 - 6;
+        public CustomFrameLayout(int width = widthFrameLayout, int height = heightFrameLayout)
+        {
+            this.Width = Application.GetRealWidth(width);
+            this.Height = Application.GetRealHeight(height);
+        }
+        Button btnImage = new Button
+        {
+            Width = Application.GetRealWidth(32),
+            Height = Application.GetRealWidth(32),
+            Gravity = Gravity.TopCenter,
+
+        };
+        Button btnText = new Button
+        {
+            Width = Application.GetRealWidth(36),
+            Height = Application.GetRealHeight(16),
+            TextSize = TextSize.Text12,
+            TextColor = MusicColor.WhiteColor,
+            SelectedTextColor = MusicColor.MusicTxet14SelectedColor,
+            TextAlignment = TextAlignment.Center,
+            Gravity = Gravity.CenterHorizontal,
+            Padding = new Padding(0, 0, 0, 0),
+        };
+        Button btnNumber = new Button
+        {
+            Width = Application.GetRealWidth(widthFrameLayout),
+            Height = Application.GetRealHeight(heightFrameLayout),
+            Gravity = Gravity.Center,
+            TextSize = 20,
+            TextColor = MusicColor.WhiteColor,
+            SelectedTextColor = MusicColor.MusicTxet14SelectedColor,
+            IsBold = true,
+
+        };
+        Button btn = new Button
+        {
+            Width = Application.GetRealWidth(12),
+            Height = Application.GetRealWidth(12),
+            Gravity = Gravity.Center,
+            Radius = (uint)Application.GetRealWidth(6),
+            BackgroundColor = 0x00000000,
+            SelectedBackgroundColor = 0xFFF2F3F7,
+        };
+
+        public FrameLayout clickFl = new FrameLayout
+        {
+            Width = Application.GetRealWidth(widthFrameLayout),
+            Height = Application.GetRealHeight(heightFrameLayout),
+        };
+
+
+        public void AddImageView()
+        {
+            this.AddChidren(btnImage);
+
+        }
+        public void AddTextButtonView()
+        {
+            btnText.Y = btnImage.Bottom;
+            this.AddChidren(btnText);
+        }
+        public void AddColorButtonView()
+        {
+            this.AddChidren(btn);
+        }
+
+        public void AddNumberButtonView()
+        {
+            this.AddChidren(btnNumber);
+        }
+        public Button GetImageButton()
+        {
+            return this.btnImage;
+        }
+        public Button GetTextButton()
+        {
+            return this.btnText;
+        }
+
+        public Button GetColorButto()
+        {
+            return this.btn;
+        }
+        public Button GetNumberButto()
+        {
+            return this.btnNumber;
+        }
+
+        public void AddClickView()
+        {
+            this.AddChidren(clickFl);
+
+        }
+
+        /// <summary>
+        /// 浜嬩欢鐩戝惉鏂规硶
+        /// 鏄畾瑕佹坊鍔燗ddClickView(),鐐瑰嚮浜嬩欢鎵嶇敓鏁�;
+        /// </summary>
+        /// <param name="action">鍥炶皟(鐖剁被瀵硅薄)</param>
+        public void SetClickListener(Action action)
+        {
+            clickFl.MouseUpEventHandler += (sender, e) =>
+            {
+                action?.Invoke();
+                //鎸変笅鍘绘敼鍙樿儗鏅鑹�
+                btnImage.IsSelected = true;
+                btnText.IsSelected = true;
+                btnNumber.IsSelected = true;
+                btn.IsSelected = true;
+                new System.Threading.Thread(() =>
+                {
+                    System.Threading.Thread.Sleep(millisecondsTimeout);
+                    Application.RunOnMainThread(() =>
+                    {
+                        //寮硅捣鏉ヨ繕鍘熻儗鏅鑹�
+                        btnImage.IsSelected = false;
+                        btnText.IsSelected = false;
+                        btnNumber.IsSelected = false;
+                        btn.IsSelected = false;
+                    });
+                })
+                { IsBackground = true }.Start();
+              
+            };
+
+            
+
+        }
+
+
     }
 }

--
Gitblit v1.8.0