From cf145d2d389c9d45ec0fd8bfa853d3481c29910e Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期五, 10 六月 2022 09:18:52 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/wjc' into Dev-Branch

---
 HDL_ON/UI/UI2/FuntionControlView/Music/View/MyListView.cs           |    2 
 HDL-ON_Android/Assets/Language.ini                                  |    9 +
 HDL-ON_iOS/HDL-ON_iOS.csproj                                        |    2 
 HDL-ON_iOS/Resources/Phone/MusicIcon/order.png                      |    0 
 HDL-ON_iOS/Resources/Phone/MusicIcon/single.png                     |    0 
 HDL-ON_Android/Assets/Phone/MusicIcon/single_cycle.png              |    0 
 HDL-ON_Android/HDL-ON_Android.csproj                                |    2 
 HDL_ON/UI/UI2/3-Intelligence/Automation/AddInputType.cs             |    2 
 HDL_ON/UI/UI2/3-Intelligence/Automation/FunTpye.cs                  |    2 
 HDL-ON_Android/Assets/Phone/MusicIcon/single.png                    |    0 
 HDL-ON_iOS/Resources/Language.ini                                   |    8 +
 HDL_ON/UI/UI2/FuntionControlView/Music/A31PlayMusicPage.cs          |   87 ++++++++++++++++-----
 HDL-ON_iOS/Resources/Phone/MusicIcon/single_cycle.png               |    0 
 HDL-ON_Android/Assets/Phone/MusicIcon/order.png                     |    0 
 HDL_ON/Common/R.cs                                                  |   14 +++
 HDL_ON/UI/UI2/FuntionControlView/FoolHeating/FloorHeatingPageBLL.cs |   84 +++++++++++++++------
 16 files changed, 156 insertions(+), 56 deletions(-)

diff --git a/HDL-ON_Android/Assets/Language.ini b/HDL-ON_Android/Assets/Language.ini
index 3c45ca3..2e71213 100644
--- a/HDL-ON_Android/Assets/Language.ini
+++ b/HDL-ON_Android/Assets/Language.ini
@@ -738,7 +738,7 @@
 5015=Bluetooth
 5016=Line input
 5017=Revise the name
-5018=Single
+5018=Single loop
 5019=Random play
 5020=List
 5021=Has shifted to
@@ -768,6 +768,9 @@
 5045=General volume
 5046=Adjust volume
 5047="QQ music" has not installed in your cell phone, please proceed in App center.
+5048= Progressive cycle
+5049=Single play
+
  
 6000=normal
 6001=Device status
@@ -1898,7 +1901,7 @@
 5015=钃濈墮
 5016=绾胯矾杈撳叆
 5017=淇敼鍚嶇О
-5018=鍗曟洸鎾斁
+5018=鍗曟洸寰幆鎾斁
 5019=闅忔満鎾斁
 5020=鍒楄〃鎾斁
 5021=宸插垏鎹㈠埌
@@ -1928,6 +1931,8 @@
 5045=鎬婚煶閲�
 5046=璋冭妭闊抽噺
 5047=浣犳墜鏈烘殏鏈畨瑁�"QQ闊充箰"{\r\n}璇峰墠寰�鎵嬫満鍟嗗満瀹夎
+5048=寰簭寰幆
+5049=鍗曟洸鎾斁
  
  
 6000=姝e父
diff --git a/HDL-ON_Android/Assets/Phone/MusicIcon/order.png b/HDL-ON_Android/Assets/Phone/MusicIcon/order.png
new file mode 100644
index 0000000..cfe4317
--- /dev/null
+++ b/HDL-ON_Android/Assets/Phone/MusicIcon/order.png
Binary files differ
diff --git a/HDL-ON_Android/Assets/Phone/MusicIcon/single.png b/HDL-ON_Android/Assets/Phone/MusicIcon/single.png
index 3d49095..e4153c4 100644
--- a/HDL-ON_Android/Assets/Phone/MusicIcon/single.png
+++ b/HDL-ON_Android/Assets/Phone/MusicIcon/single.png
Binary files differ
diff --git a/HDL-ON_Android/Assets/Phone/MusicIcon/single_cycle.png b/HDL-ON_Android/Assets/Phone/MusicIcon/single_cycle.png
new file mode 100644
index 0000000..33ee323
--- /dev/null
+++ b/HDL-ON_Android/Assets/Phone/MusicIcon/single_cycle.png
Binary files differ
diff --git a/HDL-ON_Android/HDL-ON_Android.csproj b/HDL-ON_Android/HDL-ON_Android.csproj
index 37a7888..3b3f61d 100644
--- a/HDL-ON_Android/HDL-ON_Android.csproj
+++ b/HDL-ON_Android/HDL-ON_Android.csproj
@@ -245,6 +245,8 @@
     <AndroidAsset Include="Assets\Phone\FunctionIcon\Panel\PanelEnviBg.png" />
     <AndroidAsset Include="Assets\Phone\FunctionIcon\FloorHeating\EconomicIcon.png" />
     <AndroidAsset Include="Assets\Phone\FunctionIcon\FloorHeating\EconomicIconGray.png" />
+    <AndroidAsset Include="Assets\Phone\MusicIcon\order.png" />
+    <AndroidAsset Include="Assets\Phone\MusicIcon\single_cycle.png" />
   </ItemGroup>
   <ItemGroup>
     <AndroidResource Include="Resources\values\colors.xml" />
diff --git a/HDL-ON_iOS/HDL-ON_iOS.csproj b/HDL-ON_iOS/HDL-ON_iOS.csproj
index 8787622..c72dc16 100644
--- a/HDL-ON_iOS/HDL-ON_iOS.csproj
+++ b/HDL-ON_iOS/HDL-ON_iOS.csproj
@@ -1404,6 +1404,8 @@
       <BundleResource Include="Resources\Phone\FunctionIcon\Panel\PanelHelpNormalBgIcon.png" />
       <BundleResource Include="Resources\Phone\FunctionIcon\Icon\screenpanel.png" />
       <BundleResource Include="Resources\Phone\FunctionIcon\Panel\PanelEnviBg.png" />
+      <BundleResource Include="Resources\Phone\MusicIcon\order.png" />
+      <BundleResource Include="Resources\Phone\MusicIcon\single_cycle.png" />
     </ItemGroup>
     <ItemGroup>
       <ITunesArtwork Include="iTunesArtwork" />
diff --git a/HDL-ON_iOS/Resources/Language.ini b/HDL-ON_iOS/Resources/Language.ini
index 78daf8e..aa18fb0 100644
--- a/HDL-ON_iOS/Resources/Language.ini
+++ b/HDL-ON_iOS/Resources/Language.ini
@@ -738,7 +738,7 @@
 5015=Bluetooth
 5016=Line input
 5017=Revise the name
-5018=Single
+5018=Single loop 
 5019=Random play
 5020=List
 5021=Has shifted to
@@ -768,6 +768,8 @@
 5045=General volume
 5046=Adjust volume
 5047="QQ music" has not installed in your cell phone, please proceed in App center.
+5048= Progressive cycle
+5049=Single play
  
 6000=normal
 6001=Device status
@@ -1897,7 +1899,7 @@
 5015=钃濈墮
 5016=绾胯矾杈撳叆
 5017=淇敼鍚嶇О
-5018=鍗曟洸鎾斁
+5018=鍗曟洸寰幆鎾斁
 5019=闅忔満鎾斁
 5020=鍒楄〃鎾斁
 5021=宸插垏鎹㈠埌
@@ -1927,6 +1929,8 @@
 5045=鎬婚煶閲�
 5046=璋冭妭闊抽噺
 5047=浣犳墜鏈烘殏鏈畨瑁�"QQ闊充箰"{\r\n}璇峰墠寰�鎵嬫満鍟嗗満瀹夎
+5048=寰簭寰幆
+5049=鍗曟洸寰幆
  
  
 6000=姝e父
diff --git a/HDL-ON_iOS/Resources/Phone/MusicIcon/order.png b/HDL-ON_iOS/Resources/Phone/MusicIcon/order.png
new file mode 100644
index 0000000..cfe4317
--- /dev/null
+++ b/HDL-ON_iOS/Resources/Phone/MusicIcon/order.png
Binary files differ
diff --git a/HDL-ON_iOS/Resources/Phone/MusicIcon/single.png b/HDL-ON_iOS/Resources/Phone/MusicIcon/single.png
index 3d49095..e4153c4 100644
--- a/HDL-ON_iOS/Resources/Phone/MusicIcon/single.png
+++ b/HDL-ON_iOS/Resources/Phone/MusicIcon/single.png
Binary files differ
diff --git a/HDL-ON_iOS/Resources/Phone/MusicIcon/single_cycle.png b/HDL-ON_iOS/Resources/Phone/MusicIcon/single_cycle.png
new file mode 100644
index 0000000..33ee323
--- /dev/null
+++ b/HDL-ON_iOS/Resources/Phone/MusicIcon/single_cycle.png
Binary files differ
diff --git a/HDL_ON/Common/R.cs b/HDL_ON/Common/R.cs
index d537d1f..7e86ec4 100644
--- a/HDL_ON/Common/R.cs
+++ b/HDL_ON/Common/R.cs
@@ -1632,9 +1632,9 @@
         /// </summary>
         public const int modifyName = 5017;
         /// <summary>
-        /// 鍗曟洸鎾斁
+        /// 鍗曟洸寰幆鎾斁
         /// </summary>
-        public const int singleMode = 5018;
+        public const int singleCycleMode = 5018;
         /// <summary>
         /// 闅忔満鎾斁
         /// </summary>
@@ -1751,6 +1751,16 @@
         /// 浣犳墜鏈烘殏鏈畨瑁�"QQ闊充箰"{\r\n}璇峰墠寰�鎵嬫満鍟嗗満瀹夎
         /// </summary>
         public const int qqMsuicTip = 5047;
+        /// <summary>
+        /// 寰簭寰幆
+        /// </summary>
+        public const int orderMode =5048;
+        /// <summary>
+        /// 鍗曟洸鎾斁
+        /// </summary>
+        public const int single =5049;
+
+
 
         /// <summary>
         /// 姝e父
diff --git a/HDL_ON/UI/UI2/3-Intelligence/Automation/AddInputType.cs b/HDL_ON/UI/UI2/3-Intelligence/Automation/AddInputType.cs
index c0a2ba0..2072723 100644
--- a/HDL_ON/UI/UI2/3-Intelligence/Automation/AddInputType.cs
+++ b/HDL_ON/UI/UI2/3-Intelligence/Automation/AddInputType.cs
@@ -9,7 +9,6 @@
         {
             Tag = "Logic";
         }
-       
         public void Show()
         {
             LogicView.TopView topView = new LogicView.TopView();
@@ -79,6 +78,7 @@
             //鏃堕棿
             timeView.btnClick.MouseUpEventHandler += (sen, e) =>
              {
+
           TimeTpye timeTpye = new TimeTpye();
           MainPage.BasePageView.AddChidren(timeTpye);
           timeTpye.Show();
diff --git a/HDL_ON/UI/UI2/3-Intelligence/Automation/FunTpye.cs b/HDL_ON/UI/UI2/3-Intelligence/Automation/FunTpye.cs
index 13e261d..6a3bd4e 100644
--- a/HDL_ON/UI/UI2/3-Intelligence/Automation/FunTpye.cs
+++ b/HDL_ON/UI/UI2/3-Intelligence/Automation/FunTpye.cs
@@ -251,8 +251,6 @@
             this.LoadingDeviceListView(vv, lists);
 
         }
-
-
         /// <summary>
         /// 鏄剧ず璁惧鐨刅iew
         /// </summary>
diff --git a/HDL_ON/UI/UI2/FuntionControlView/FoolHeating/FloorHeatingPageBLL.cs b/HDL_ON/UI/UI2/FuntionControlView/FoolHeating/FloorHeatingPageBLL.cs
index c4f3c87..860de44 100644
--- a/HDL_ON/UI/UI2/FuntionControlView/FoolHeating/FloorHeatingPageBLL.cs
+++ b/HDL_ON/UI/UI2/FuntionControlView/FoolHeating/FloorHeatingPageBLL.cs
@@ -23,7 +23,7 @@
                     bodyView.btnTemp.Text = outinTemp.ToString();
                     bodyView.btnIndoorTemp.Text = Language.StringByID(StringId.IndoorTemp) + Convert.ToInt32(Convert.ToDouble(updateTemp.GetAttrState(FunctionAttributeKey.RoomTemp).Replace(",", "."))) + "掳C";
                     bodyView.btnMode.SelectedImagePath = bodyView.fhTemp.GetModeIconPath(updateTemp.GetAttrState(FunctionAttributeKey.Mode));
-                    bodyView.btnMode.UnSelectedImagePath = bodyView.fhTemp.GetModeIconPath(updateTemp.GetAttrState(FunctionAttributeKey.Mode),false);
+                    bodyView.btnMode.UnSelectedImagePath = bodyView.fhTemp.GetModeIconPath(updateTemp.GetAttrState(FunctionAttributeKey.Mode), false);
                     bodyView.arcBar.Progress = outinTemp;
                     //if (updateTemp.trait_on_off.curValue.ToString() == "on")
                     //{
@@ -73,15 +73,16 @@
                         bodyView.arcBar.IsClickable = false;
                         bodyView.arcBar.ThumbImagePath = "FunctionIcon/AC/DiyThumbIcon.png";
                     }
-                    //鑷姩妯″紡涓嶅厑璁歌皟娓╁害 2021-10-27 09:41:35 wxr 闄堢惓鍙嶉
-                    if (updateTemp.GetAttrState(FunctionAttributeKey.Mode) == "auto"|| updateTemp.GetAttrState(FunctionAttributeKey.Mode) == "timer")
-                    {
-                        bodyView.btnPlus.Enable = false;
-                        bodyView.btnMinus.Enable = false;
-                        bodyView.arcBar.IsClickable = false;
-                        bodyView.arcBar.IsOffline = true;
-                    }
-
+                    ////鑷姩妯″紡涓嶅厑璁歌皟娓╁害 2021-10-27 09:41:35 wxr 闄堢惓鍙嶉
+                    //if (updateTemp.GetAttrState(FunctionAttributeKey.Mode) == "auto" || updateTemp.GetAttrState(FunctionAttributeKey.Mode) == "timer")
+                    //{
+                    //    bodyView.btnPlus.Enable = false;
+                    //    bodyView.btnMinus.Enable = false;
+                    //    bodyView.arcBar.IsClickable = false;
+                    //    bodyView.arcBar.IsOffline = true;
+                    //}
+                    //鏇存柊涓嶅悓鐣岄潰鐘舵�� 2022骞�06鏈�09鏃�19:22:55 wjc 淇敼
+                    bodyView.updateStatusPage();
                 });
             }
             catch (Exception ex)
@@ -102,14 +103,17 @@
                 btnFromFloor_Out.Text = btnFromFoorAndRoom.Text = function.GetRoomListName();
                 //function.SaveFunctionData(true);
             };
-            //鑷姩妯″紡涓嶅厑璁歌皟娓╁害 2021-10-27 09:41:35 wxr 闄堢惓鍙嶉
-            if (function.GetAttrState(FunctionAttributeKey.Mode) == "auto" || function.GetAttrState(FunctionAttributeKey.Mode) == "timer")
-            {
-                btnPlus.Enable = false;
-                btnMinus.Enable = false;
-                arcBar.IsClickable = false;
-                arcBar.IsOffline = true;
-            }
+
+            ////鑷姩妯″紡涓嶅厑璁歌皟娓╁害 2021-10-27 09:41:35 wxr 闄堢惓鍙嶉
+            //if (function.GetAttrState(FunctionAttributeKey.Mode) == "auto" || function.GetAttrState(FunctionAttributeKey.Mode) == "timer")
+            //{
+            //    btnPlus.Enable = false;
+            //    btnMinus.Enable = false;
+            //    arcBar.IsClickable = false;
+            //    arcBar.IsOffline = true;
+            //}
+            //鍒濆鍖栦笉鍚岀晫闈㈢姸鎬� 2022骞�06鏈�09鏃�19:22:55 wjc 淇敼
+            this.updateStatusPage();
         }
 
         /// <summary>
@@ -141,7 +145,7 @@
             //}
             btnMinus.MouseUpEventHandler = (sender, e) =>
             {
-                if(function.trait_on_off.curValue.ToString() == "off")
+                if (function.trait_on_off.curValue.ToString() == "off")
                 {
                     return;
                 }
@@ -166,7 +170,7 @@
                 {
                     return;
                 }
-                var temp =(int) Convert.ToDouble(function.GetAttrState(FunctionAttributeKey.SetTemp).Replace(",", "."));
+                var temp = (int)Convert.ToDouble(function.GetAttrState(FunctionAttributeKey.SetTemp).Replace(",", "."));
                 if (temp >= Convert.ToDouble(function.GetAttribute(FunctionAttributeKey.SetTemp).max))
                 {
                     return;
@@ -182,7 +186,7 @@
             };
             arcBar.OnStopTrackingTouchEvent = (sender, e) =>
             {
-                function.SetAttrState(FunctionAttributeKey.SetTemp,arcBar.Progress);
+                function.SetAttrState(FunctionAttributeKey.SetTemp, arcBar.Progress);
                 btnTemp.Text = arcBar.Progress.ToString();
                 System.Collections.Generic.Dictionary<string, string> d = new System.Collections.Generic.Dictionary<string, string>();
                 d.Add(FunctionAttributeKey.SetTemp, arcBar.Progress.ToString());
@@ -191,7 +195,7 @@
             arcBar.OnProgressChangedEvent = (sender, e) =>
             {
                 function.SetAttrState(FunctionAttributeKey.SetTemp, e);
-                btnTemp.Text = Convert.ToDouble( function.GetAttrState(FunctionAttributeKey.SetTemp).Replace(",", ".")).ToString();
+                btnTemp.Text = Convert.ToDouble(function.GetAttrState(FunctionAttributeKey.SetTemp).Replace(",", ".")).ToString();
             };
         }
         /// <summary>
@@ -229,7 +233,7 @@
                 System.Collections.Generic.Dictionary<string, string> d = new System.Collections.Generic.Dictionary<string, string>();
                 d.Add(FunctionAttributeKey.OnOff, function.trait_on_off.curValue.ToString());
                 Control.Ins.SendWriteCommand(function, d);
-               
+
             };
         }
 
@@ -246,7 +250,7 @@
             EventHandler<MouseEventArgs> eventHandler1 = (sender, e) =>
             {
                 btn1.IsSelected = btn2.IsSelected = true;
-                function.SetAttrState(FunctionAttributeKey.Mode,curMode);
+                function.SetAttrState(FunctionAttributeKey.Mode, curMode);
                 btnMode.UnSelectedImagePath = btn1.SelectedImagePath;
                 //byte pro = 6;//涓嶅鐞嗘俯搴︽樉绀猴紝绛夊緟鍥炲鏁版嵁鍐嶅鐞�
                 //function.Fh_Mode_Temp.TryGetValue(curMode, out pro);
@@ -260,5 +264,37 @@
             btn2.MouseUpEventHandler = eventHandler1;
             dialogView.MouseUpEventHandler = eventHandler;
         }
+
+        /// <summary>
+        /// 鏇存柊涓嶅悓鐣岄潰鐘舵��
+        /// </summary>
+       private void updateStatusPage() 
+        {
+            btnPlus.Enable = true;
+            btnMinus.Enable = true;
+            arcBar.IsClickable = true;
+            arcBar.IsOffline = false;
+            switch (getModeValue)
+            {
+                case "auto"://鑷姩
+                case "timer"://
+                    btnPlus.Enable = false;
+                    btnMinus.Enable = false;
+                    arcBar.IsClickable = false;
+                    arcBar.IsOffline = true;
+                    break;
+
+            }
+        }
+        /// <summary>
+        /// 鑾峰彇妯″紡value鍊�
+        /// </summary>
+        private string getModeValue
+        {
+            get
+            {
+                return function.GetAttrState(FunctionAttributeKey.Mode);
+            }
+        }
     }
 }
diff --git a/HDL_ON/UI/UI2/FuntionControlView/Music/A31PlayMusicPage.cs b/HDL_ON/UI/UI2/FuntionControlView/Music/A31PlayMusicPage.cs
index f5f1c5d..6bcea7c 100644
--- a/HDL_ON/UI/UI2/FuntionControlView/Music/A31PlayMusicPage.cs
+++ b/HDL_ON/UI/UI2/FuntionControlView/Music/A31PlayMusicPage.cs
@@ -4,6 +4,7 @@
 using System.Collections.Generic;
 using System.Security;
 using HDL_ON.UI.UI2.FuntionControlView.Music;
+using HDL_ON.Entity;
 
 namespace HDL_ON.UI.Music
 {
@@ -90,34 +91,62 @@
             ///鍒囨崲鎾斁妯″紡鐐瑰嚮浜嬩欢;
             playView.playOrderBtn.MouseUpEventHandler += (sender, e) =>
              {
-                 string modeValueString = string.Empty; 
                  string msg = Language.StringByID(StringId.switchTo);
-                 string modeKeyValue = A31MusicModel.Current.functionMusic.GetAttrState(KeyProperty.mode);
-                 switch (modeKeyValue)
+                 //鑾峰彇褰撳墠鎾斁妯″紡
+                 string currModeKeyValue = A31MusicModel.Current.functionMusic.GetAttrState(KeyProperty.mode);
+                 //鑾峰彇闊充箰鎾斁妯″紡鍒楄〃
+                 var attributes = A31MusicModel.Current.functionMusic.GetAttribute(KeyProperty.mode);
+                 if (attributes==null) {
+                     attributes=new FunctionAttributes();
+                 }
+                 var attributesList = attributes.value;
+                 //鎵惧埌褰撳墠鎾斁妯″紡绱㈠紩鍊�
+                 int currModeIndexe = attributesList.IndexOf(currModeKeyValue);
+                 //璁板綍閫変腑鐨勬挱鏀炬ā寮忕殑绱㈠紩鍊�
+                 int count = 0;
+                 if (currModeIndexe >= attributesList.Count-1)
+                 {
+                     //閲嶇疆绱㈠紩鍊�
+                     count = 0;
+                 }
+                 else
+                 {
+                     count = currModeIndexe + 1;
+                 }
+                 //閫氳繃绱㈠紩鍊兼壘鍒版ā寮弙alue鍊�
+                 string modeValueString = attributesList[count];
+                 switch (modeValueString)
                  {
                      //list_cycle鍒楄〃寰幆锛宻ingle_cycle鍗曟洸寰幆锛宺andom闅忔満鎾斁;
                      case ValueProperty.list_cycle:
-                         modeValueString=ValueProperty.single_cycle;
-                         playView.playOrderBtn.UnSelectedImagePath = "MusicIcon/single.png";
-                         msg += Language.StringByID(StringId.singleMode);
+                         playView.playOrderBtn.UnSelectedImagePath = "MusicIcon/list.png"; 
+                         msg += Language.StringByID(StringId.listMode);
                          break;
                      case ValueProperty.single_cycle:
-                         modeValueString =ValueProperty.random;
+                         playView.playOrderBtn.UnSelectedImagePath = "MusicIcon/single_cycle.png";
+                         msg += Language.StringByID(StringId.singleCycleMode);
+                         break;
+                     case ValueProperty.random:
                          playView.playOrderBtn.UnSelectedImagePath = "MusicIcon/random.png";
                          msg += Language.StringByID(StringId.randomMode);
                          break;
-                     case ValueProperty.random:
-                         modeValueString = ValueProperty.list_cycle;
-                         playView.playOrderBtn.UnSelectedImagePath = "MusicIcon/list.png";
-                         msg += Language.StringByID(StringId.listMode);
+                     case ValueProperty.single:
+                         playView.playOrderBtn.UnSelectedImagePath = "MusicIcon/single.png";
+                         msg += Language.StringByID(StringId.single);
                          break;
-                  
+                     case ValueProperty.order:
+                         playView.playOrderBtn.UnSelectedImagePath = "MusicIcon/order.png";
+                         msg += Language.StringByID(StringId.orderMode);
+                         break;
+
                  }
+                 //鍐欏叆缂撳瓨
                  A31MusicModel.Current.functionMusic.SetAttrState(KeyProperty.mode, modeValueString);
-                 new PublicAssmebly().TipMsgAutoClose(msg, false,1000);
+                 new PublicAssmebly().TipMsgAutoClose(msg, false, 1000);
                  Dictionary<string, string> dic = new Dictionary<string, string>();
-                 dic.Add(KeyProperty.mode,modeValueString);
-                 SendMethod.mMethod.SendControlCommand(A31MusicModel.Current.functionMusic,dic);
+                 dic.Add(KeyProperty.mode, modeValueString);
+                 //鍙戦�佹帶鍒舵寚浠�
+                 SendMethod.mMethod.SendControlCommand(A31MusicModel.Current.functionMusic, dic);
              };
             ///娣诲姞鍠滅埍鐐瑰嚮浜嬩欢;
             playView.loveBtn.MouseUpEventHandler += (sender, e) =>
@@ -318,22 +347,29 @@
                             int totalMusicMinute = totalSecond / 60;
                             //绉掗挓
                             int totalMusicSecond = totalSecond % 60;
-
+                            //杞寲姝屾洸鎬绘椂闂存椂闂存牸寮�
                             string totalTime = (totalMusicMinute.ToString().Length < 2 ? "0" + totalMusicMinute.ToString() : totalMusicMinute.ToString()) + ":" + (totalMusicSecond.ToString().Length < 2 ? "0" + totalMusicSecond.ToString() : totalMusicSecond.ToString());
+                            //鏄剧ず鎬绘椂闂�
                             playView.endTimeBtn.Text = totalTime;
-
+                            //鏄剧ず鎾斁鍣ㄥ悕绉�
                             topView.topNameBtn.Text = A31MusicModel.Current.functionMusic.name;
-                            string s = A31MusicModel.Current.functionMusic.GetAttrState(KeyProperty.mode);
+                            //鏄剧ず鎾斁妯″紡鍥炬爣
                             switch (A31MusicModel.Current.functionMusic.GetAttrState(KeyProperty.mode))
                             {
                                 case ValueProperty.list_cycle://鍒楄〃寰幆
                                     playView.playOrderBtn.UnSelectedImagePath = "MusicIcon/list.png";
                                     break;
                                 case ValueProperty.single_cycle://鍗曟洸寰幆
-                                    playView.playOrderBtn.UnSelectedImagePath = "MusicIcon/single.png";
+                                    playView.playOrderBtn.UnSelectedImagePath = "MusicIcon/single_cycle.png";
                                     break;
                                 case ValueProperty.random://闅忔満鎾斁
                                     playView.playOrderBtn.UnSelectedImagePath = "MusicIcon/random.png";
+                                    break;
+                                case ValueProperty.single:// 鍗曟洸<single>
+                                    playView.playOrderBtn.UnSelectedImagePath = "MusicIcon/single.png";
+                                    break;
+                                case ValueProperty.order://寰簭寰幆
+                                    playView.playOrderBtn.UnSelectedImagePath = "MusicIcon/order.png";
                                     break;
                             }
 
@@ -368,7 +404,9 @@
                             //        playView.loveBtn.IsSelected = false;
                             //    }
                             //}
+                            //鏄剧ず鎾斁鍣ㄥ尯鍩�
                             playView.regionBtn.Text = A31MusicModel.Current.functionMusic.GetRoomListName();
+                            //鏄剧ず鎾斁鍣ㄦ敹钘忕姸鎬佸浘鏍�
                             if (A31MusicModel.Current.functionMusic.collect)
                             {
                                 playView.collectIconBtn.IsSelected = true;
@@ -428,21 +466,23 @@
                             int playMusicMinute = playSecond / 60;
                             //绉掗挓
                             int playMusicSecond = playSecond % 60;
+                            //杞寲鎾斁鏃堕棿鏃堕棿鏍煎紡
                             string playTime = (playMusicMinute.ToString().Length < 2 ? "0" + playMusicMinute.ToString() : playMusicMinute.ToString()) + ":" + (playMusicSecond.ToString().Length < 2 ? "0" + playMusicSecond.ToString() : playMusicSecond.ToString());
 
                             if (A31MusicModel.Current.functionMusic.GetAttrState(KeyProperty.on_off) == ValueProperty.on)
                             {
+                                //鏄剧ず鎾斁鐘舵�佸浘鏍�
                                 playView.playBtn.IsSelected = true;
-                                //濡傛灉鍦ㄦ挱鏀撅紝鏃堕棿灏变笉鏂彉鍖�                    
+                                //鏄剧ず鎾斁鏃堕棿                  
                                 playView.startTimeBtn.Text = playTime;
                                 if (totalSecond == 0)
                                 {
-                                    //姝屾洸杩涘害鏉�
+                                    //鏄剧ず姝屾洸杩涘害鏉�
                                     playView.diyArcSeekBar.Progress = 0;
                                 }
                                 else
                                 {
-                                    //姝屾洸杩涘害鏉�
+                                    //鏄剧ず姝屾洸杩涘害鏉�
                                     playView.diyArcSeekBar.Progress = (int)(playSecond * 100.0 / totalSecond);//+1
                                 }
 
@@ -450,6 +490,7 @@
                             }
                             else
                             {
+                                //鏄剧ず鎾斁鐘舵�佸浘鏍�
                                 playView.playBtn.IsSelected = false;
                                 //鍋滄鎾斁
                                 playView.startTimeBtn.Text =playTime;
@@ -457,7 +498,9 @@
                                 ///璁板綍姝屾洸鏆傚仠鏃堕棿锛�<LastDateTime 璁$畻鎾斁鏃堕棿鏈夌敤鍒�>
                                 A31MusicModel.Current.LastDateTime = DateTime.Now;
                             }
+                            //鏄剧ず姝屾洸鍚嶇О
                             playView.songNameTextView.Text = A31MusicModel.Current.functionMusic.GetAttrState(KeyProperty.song_name) == null ? "Unkown" : A31MusicModel.Current.functionMusic.GetAttrState(KeyProperty.song_name);
+                            //鏄剧ず姝屾墜鍚嶇О
                             playView.singerBtn.Text = A31MusicModel.Current.functionMusic.GetAttrState(KeyProperty.song_name) == null ? "Unkown" : A31MusicModel.Current.functionMusic.GetAttrState(KeyProperty.song_name);
                             //鏇存柊婧愮殑鐣岄潰
                            // showSourcePage();
diff --git a/HDL_ON/UI/UI2/FuntionControlView/Music/View/MyListView.cs b/HDL_ON/UI/UI2/FuntionControlView/Music/View/MyListView.cs
index f6ec20b..fb6a925 100644
--- a/HDL_ON/UI/UI2/FuntionControlView/Music/View/MyListView.cs
+++ b/HDL_ON/UI/UI2/FuntionControlView/Music/View/MyListView.cs
@@ -102,7 +102,7 @@
 
                 case ValueProperty.single_cycle:
                     orderIconBtn.UnSelectedImagePath = "MusicIcon/single.png";
-                    orderTxetBtn.Text = Language.StringByID(StringId.singleMode);
+                    orderTxetBtn.Text = Language.StringByID(StringId.singleCycleMode);
 
                     break;
                 case ValueProperty.random:

--
Gitblit v1.8.0