| | |
| | | { |
| | | Tag = "Music"; |
| | | } |
| | | |
| | | |
| | | public void Show() |
| | | { |
| | | #region 界面布局------ |
| | |
| | | ///播放器修改名称事件 |
| | | 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) => { |