HDL Home App 第二版本 旧平台金堂用 正在使用
WJC
2019-10-29 c41d2d0317ee437ba13e01780bc180e3ef51fd52
ZigbeeApp/Shared/Phone/Device/Category/Category.cs
@@ -748,6 +748,12 @@
        /// <param name="mouseEventArgs">The ${ParameterType} instance containing the event data.</param>
        private void AutomationBtn_MouseUpEventHandler(object sender, MouseEventArgs mouseEventArgs)
        {
            ///第一次进来初始化设备列表;
            Common.Logic.LogicDviceList.Clear();
            if (Common.Logic.LogicDviceList.Count == 0)
            {
                Common.Logic.LogicDviceList.AddRange(LocalDevice.Current.listAllDevice.ToArray());
            }
            functionBtn.IsSelected = false;
            sceneBtn.IsSelected = false;
            automationBtn.IsSelected = true;
@@ -1807,9 +1813,9 @@
        /// <summary>
        /// 自动化
        /// </summary>
        public async void ShowAutotion()
        {
        private async void ShowAutotion()
        {
            functionSceneAutoBodyView.BackgroundColor = ZigbeeColor.Current.LogicMiddleBackgroundColor;
            
            var bjFrameLayout = new FrameLayout
@@ -1944,12 +1950,7 @@
                            }
                            else
                            {
                                Common.Logic.LogicDviceList.Clear();
                                if (Common.Logic.LogicDviceList.Count == 0)
                                {
                                    Common.Logic.LogicDviceList.AddRange(LocalDevice.Current.listAllDevice.ToArray());
                                }
                                Common.Logic.CurrentLogic.LogicType = 2;
                                Common.Logic.CurrentLogic.LogicName = logicnameBtn.Text;
                                Logic.TemplatePage templatePage = new Logic.TemplatePage();
                                Logic.TemplatePage.s = logiciocnBtn.Tag.ToString();
@@ -2000,7 +2001,7 @@
        /// 自动化列表界面
        /// </summary>
        /// <param name="refresview">Refresview.</param>
        public async void Automationview(VerticalScrolViewLayout refresview)
        private async void Automationview(VerticalScrolViewLayout refresview)
        {
            refresview.RemoveAll();
            foreach (var logic in Common.Logic.LogicList)
@@ -2088,11 +2089,6 @@
                bjRow.AddRightView(edit);
                edit.MouseUpEventHandler += (sender, e) =>
                {
                    Common.Logic.LogicDviceList.Clear();
                    if (Common.Logic.LogicDviceList.Count == 0)
                    {
                        Common.Logic.LogicDviceList.AddRange(LocalDevice.Current.listAllDevice.ToArray());
                    }
                    Common.Logic.CurrentLogic = logic;
                    var logicCommunalPage = new Logic.LogicCommunalPage();
                    HomePage.Instance.AddChidren(logicCommunalPage);
@@ -2131,8 +2127,6 @@
        }
        #endregion
        #region ◆ 控制状态_________________________
@@ -2599,5 +2593,6 @@
                }
            }
        }
        #endregion
    }
}