gxc
2020-01-02 34e965100d635346e2d4cd6e6013bdaed66b3004
ZigbeeApp/Shared/Phone/UserCenter/Device/Curtain/AutoOpenDirectionAndLimitSettionForm.cs
@@ -99,15 +99,29 @@
                listView.Height = bodyFrameLayout.Height;
                bodyFrameLayout.AddChidren(listView);
                //添加方向行
                this.AddDirectionRow();
                //添加限位行
                this.AddLimitRow();
                //添加重置电机行
                this.AddElectricalMachineryRow();
                try
                {
                    //添加方向行
                    this.AddDirectionRow();
                    //添加限位行
                    this.AddLimitRow();
                    //添加重置电机行
                    this.AddElectricalMachineryRow();
                //限位数据接收
                this.ReceiveLimitData();
                    //限位数据接收
                    this.ReceiveLimitData();
                }
                catch (Exception ex)
                {
                    //Log出力
                    string msg = "当前激活的界面[" + UserCenterResourse.NowActionFormID + "]";
                    HdlLogLogic.Current.WriteLog(ex, msg);
                    //出现未知错误
                    this.ShowMassage(ShowMsgType.Error, Language.StringByID(R.MyInternationalizationString.uUnKnownError));
                    this.listView.RemoveAll();
                    //设备异常补救 -> 添加重置电机行
                    this.AddElectricalMachineryRow();
                }
            });
        }
@@ -177,7 +191,7 @@
            var btnRinght = rowLimit.AddMostRightEmptyIcon(58, 58);
            rowLimit.ChangedChidrenBindMode(btnRinght, ChidrenBindMode.NotBind);
            btnRinght.UseClickStatu = false;
            btnRinght.UnSelectedImagePath = "Item/Next.png";
            btnRinght.UnSelectedImagePath = "Item/RightNext.png";
            btnRinght.SelectedImagePath = "Item/Down.png";
            btnRinght.IsSelected = true;
            btnRinght.ButtonClickEvent += (sender, e) =>
@@ -266,7 +280,7 @@
                {
                    return;
                }
                openSeekBar.Progress -= 1;
                openSeekBar.Progress -= 5;
                openSeekBar.ProgressChangedEvent(1, openSeekBar.Progress);
            };
@@ -284,7 +298,7 @@
                {
                    return;
                }
                openSeekBar.Progress += 1;
                openSeekBar.Progress += 5;
                openSeekBar.ProgressChangedEvent(1, openSeekBar.Progress);
            };
@@ -443,7 +457,7 @@
                {
                    return;
                }
                closeSeekBar.Progress -= 1;
                closeSeekBar.Progress -= 5;
                closeSeekBar.ProgressChangedEvent(1, closeSeekBar.Progress);
            };
@@ -461,7 +475,7 @@
                {
                    return;
                }
                closeSeekBar.Progress += 1;
                closeSeekBar.Progress += 5;
                closeSeekBar.ProgressChangedEvent(1, closeSeekBar.Progress);
            };
@@ -588,6 +602,10 @@
                        //每10的长度大概是2秒,多预留1次出来
                        int waitCount = ((curtainData.CurtainLength / 10) + 1) * 3;
                        if (waitCount < 12)
                        {
                            waitCount = 12;
                        }
                        int timeCount = 0;
                        while (timeCount <= waitCount)