From 1e0014f5c2e2fe1cfaaacfb2bebe8adc577bc944 Mon Sep 17 00:00:00 2001
From: 陈嘉乐 <cjl@hdlchina.com.cn>
Date: 星期四, 14 五月 2020 18:01:26 +0800
Subject: [PATCH] 2020-05-14-3

---
 HDL_ON/UI/Music/A31MusicSourcePage.cs |   15 +++++++++------
 1 files changed, 9 insertions(+), 6 deletions(-)

diff --git a/HDL_ON/UI/Music/A31MusicSourcePage.cs b/HDL_ON/UI/Music/A31MusicSourcePage.cs
index 52e37b5..f505d9f 100644
--- a/HDL_ON/UI/Music/A31MusicSourcePage.cs
+++ b/HDL_ON/UI/Music/A31MusicSourcePage.cs
@@ -10,6 +10,8 @@
         {
             Tag = "Music";
         }
+
+       
         public void Show()
         {
             #region   鐣岄潰甯冨眬------
@@ -165,24 +167,25 @@
             ///鎾斁鍣ㄤ慨鏀瑰悕绉颁簨浠�
             playNameView.clickBtn.MouseUpEventHandler += (sender, e) =>
             {
-                new PublicAssmebly().LoadDialog_EditParater(StringId.ChangeName, A31MusicModel.Current.Name, (playerName) =>
+                new View.TipView().InputBox(StringId.modifyName, A31MusicModel.Current.Name, StringId.nameNull, (playerName) =>
                 {
+
                     playNameView.inputTextBtn.Text = playerName;
                     A31MusicModel.Current.Name = playerName;
                     string url = "http://" + A31MusicModel.Current.IPAddress + "/httpapi.asp?command=setDeviceName:" + A31MusicModel.Current.Name;
                     SendMethod.SendCommand(url);
-
                 });
+
             };
             ///钃濈墮淇敼鍚嶇О浜嬩欢
             bluetoothNameView.clickBtn.MouseUpEventHandler += (sender, e) =>
             {
-                new PublicAssmebly().LoadDialog_EditParater(StringId.ChangeName, A31MusicModel.Current.Name, (playerName) =>
+                new View.TipView().InputBox(StringId.modifyName, A31MusicModel.Current.Name, StringId.nameNull, (bluetoothName) =>
                 {
-                    bluetoothNameView.inputTextBtn.Text = playerName;
-                    SendMethod.ModifyBluetoothName("MCU+PAS+BT" + playerName.Trim() + "*&");
-
+                    bluetoothNameView.inputTextBtn.Text = bluetoothName;
+                    SendMethod.ModifyBluetoothName("MCU+PAS+BT" + bluetoothName.Trim() + "*&");
                 });
+
             };
             ///鎴戠殑鍠滅埍浜嬩欢
             myLoveView.clickBtn.MouseUpEventHandler += (sender, e) => {

--
Gitblit v1.8.0