| | |
| | | CurtainAnimation(curtain.percent); |
| | | }; |
| | | |
| | | btnMinusSignIcon.MouseUpEventHandler = (sender, e) => |
| | | { |
| | | curtain.percent--; |
| | | controlBar.Progress = curtain.percent; |
| | | System.Collections.Generic.Dictionary<string, string> d = new System.Collections.Generic.Dictionary<string, string>(); |
| | | d.Add(FunctionAttributeKey.Percent, curtain.percent.ToString()); |
| | | DriverLayer.Control.Ins.SendWriteCommand(curtain, d); |
| | | }; |
| | | //btnMinusSignIcon.MouseUpEventHandler = (sender, e) => |
| | | //{ |
| | | // curtain.percent--; |
| | | // controlBar.Progress = curtain.percent; |
| | | // System.Collections.Generic.Dictionary<string, string> d = new System.Collections.Generic.Dictionary<string, string>(); |
| | | // d.Add(FunctionAttributeKey.Percent, curtain.percent.ToString()); |
| | | // DriverLayer.Control.Ins.SendWriteCommand(curtain, d); |
| | | //}; |
| | | |
| | | btnPlusSgnIcon.MouseUpEventHandler = (sender, e) => |
| | | { |
| | | curtain.percent++; |
| | | controlBar.Progress = curtain.percent; |
| | | System.Collections.Generic.Dictionary<string, string> d = new System.Collections.Generic.Dictionary<string, string>(); |
| | | d.Add(FunctionAttributeKey.Percent, curtain.percent.ToString()); |
| | | DriverLayer.Control.Ins.SendWriteCommand(curtain, d); |
| | | }; |
| | | //btnPlusSgnIcon.MouseUpEventHandler = (sender, e) => |
| | | //{ |
| | | // curtain.percent++; |
| | | // controlBar.Progress = curtain.percent; |
| | | // System.Collections.Generic.Dictionary<string, string> d = new System.Collections.Generic.Dictionary<string, string>(); |
| | | // d.Add(FunctionAttributeKey.Percent, curtain.percent.ToString()); |
| | | // DriverLayer.Control.Ins.SendWriteCommand(curtain, d); |
| | | //}; |
| | | |
| | | //curtainSeekBar.OnProgressChangedEvent = (sender, e) => |
| | | //{ |
| | |
| | | //}; |
| | | curtainSeekBar.OnStopTrackingTouchEvent = (sender, e) => |
| | | { |
| | | controlBar.Progress = curtainSeekBar.Progress; |
| | | //controlBar.Progress = curtainSeekBar.Progress; |
| | | new System.Threading.Thread(() => |
| | | { |
| | | curtain.percent = e; |
| | |
| | | // { IsBackground = true }.Start(); |
| | | //}; |
| | | |
| | | controlBar.OnStopTrackingTouchEvent = (sender, e) => |
| | | { |
| | | curtainSeekBar.Progress = controlBar.Progress; |
| | | new System.Threading.Thread(() => |
| | | { |
| | | curtain.percent = e; |
| | | curtain.refreshTime = DateTime.Now; |
| | | System.Collections.Generic.Dictionary<string, string> d = new System.Collections.Generic.Dictionary<string, string>(); |
| | | d.Add("percent", curtain.percent.ToString()); |
| | | DriverLayer.Control.Ins.SendWriteCommand(curtain, d); |
| | | }) |
| | | { IsBackground = true }.Start(); |
| | | }; |
| | | //controlBar.OnStopTrackingTouchEvent = (sender, e) => |
| | | //{ |
| | | // curtainSeekBar.Progress = controlBar.Progress; |
| | | // new System.Threading.Thread(() => |
| | | // { |
| | | // curtain.percent = e; |
| | | // curtain.refreshTime = DateTime.Now; |
| | | // System.Collections.Generic.Dictionary<string, string> d = new System.Collections.Generic.Dictionary<string, string>(); |
| | | // d.Add("percent", curtain.percent.ToString()); |
| | | // DriverLayer.Control.Ins.SendWriteCommand(curtain, d); |
| | | // }) |
| | | // { IsBackground = true }.Start(); |
| | | //}; |
| | | |
| | | } |
| | | } |