| | |
| | | #endregion |
| | | |
| | | int Progressvalue = 100; |
| | | horizontalSeekBarVol.OnProgressChangedEvent += (sender, e) => |
| | | { |
| | | SelectedDeviceStatusaction = "yes"; |
| | | Progressvalue = horizontalSeekBarVol.Progress; |
| | | if (switchdictionary.ContainsKey("TaskType")) |
| | | { |
| | | switchdictionary.Remove("TaskType"); |
| | | } |
| | | if (switchdictionary.ContainsKey("Data1")) |
| | | { |
| | | switchdictionary.Remove("Data1"); |
| | | } |
| | | switchdictionary.Add("TaskType", "3"); |
| | | EventHandler<int> progressclick = (sender, e) => |
| | | { |
| | | SelectedDeviceStatusaction = "yes"; |
| | | Progressvalue = horizontalSeekBarVol.Progress; |
| | | if (switchdictionary.ContainsKey("TaskType")) |
| | | { |
| | | switchdictionary.Remove("TaskType"); |
| | | } |
| | | if (switchdictionary.ContainsKey("Data1")) |
| | | { |
| | | switchdictionary.Remove("Data1"); |
| | | } |
| | | switchdictionary.Add("TaskType", "3"); |
| | | //最大亮度值是254需要转换; |
| | | var lightbrightnessvalue = (254 * horizontalSeekBarVol.Progress) / 100; |
| | | switchdictionary.Add("Data1", lightbrightnessvalue.ToString()); |
| | | switchdictionary.Add("Data1", lightbrightnessvalue.ToString()); |
| | | |
| | | }; |
| | | }; |
| | | horizontalSeekBarVol.OnProgressChangedEvent += progressclick; |
| | | horizontalSeekBarVol.OnStopTrackingTouchEvent += progressclick; |
| | | ///确认事件 |
| | | EventHandler<MouseEventArgs> openclick = (sender, e) => |
| | | { |
| | |
| | | |
| | | #endregion |
| | | int Progressvalue = 100; |
| | | horizontalSeekBarVol.OnProgressChangedEvent += (sender, e) => |
| | | |
| | | EventHandler<int> progressclick = (sender, e) => |
| | | { |
| | | SelectedDeviceStatusaction = "yes"; |
| | | Progressvalue = horizontalSeekBarVol.Progress; |
| | |
| | | switchdictionary.Add("Data2", horizontalSeekBarVol.Progress.ToString()); |
| | | |
| | | }; |
| | | horizontalSeekBarVol.OnProgressChangedEvent += progressclick; |
| | | horizontalSeekBarVol.OnStopTrackingTouchEvent += progressclick; |
| | | ///确认事件 |
| | | EventHandler<MouseEventArgs> openclick = (sender, e) => |
| | | EventHandler <MouseEventArgs> openclick = (sender, e) => |
| | | { |
| | | SelectedDeviceStatusaction = "yes"; |
| | | horizontalSeekBarVol.IsClickable = true; |