wxr
2020-07-01 53189866ba4012fec0b40990fd2281b836fa2668
HDL_ON/UI/UI2/FuntionControlView/Curtain/RollingShutterPageBLL.cs
@@ -168,17 +168,13 @@
            curtainSeekBar.OnProgressChangedEvent = (sender, e) =>
            {
                delayTime = DateTime.Now;
                new System.Threading.Thread(() =>
                {
                    while (delayTime != DateTime.MaxValue)
                    if ((DateTime.Now - delayTime).TotalMilliseconds > 300)
                    {
                        System.Threading.Thread.Sleep(100);
                        if ((DateTime.Now - delayTime).TotalSeconds > 1)
                        {
                            curtain.openLevel = e;
                            Control.Send(CommandType_A.write, curtain);
                        }
                        delayTime = DateTime.Now;
                        curtain.openLevel = e;
                        Control.Send(CommandType_A.write, curtain);
                    }
                })
                { IsBackground = true }.Start();