lss
2022-05-17 49248e3bdff0458f8f6f4156d1425bd6f6074e32
HDL_ON/UI/UI2/3-Intelligence/Automation/AddInputType.cs
@@ -9,6 +9,7 @@
    {
      Tag = "Logic";
    }
    public void Show()
    {
      LogicView.TopView topView = new LogicView.TopView();
@@ -36,25 +37,15 @@
      {
        viewLayout.AddChidren(timeView.FLayoutView());
      }
      //功能
      LogicView.SelectTypeView functionView = new LogicView.SelectTypeView();
      functionView.frameLayout.Y = timeView.frameLayout.Bottom;
      functionView.btnText.TextID = StringId.funLogic;
      functionView.btnIcon.UnSelectedImagePath = "LogicIcon/functionicon.png";
      viewLayout.AddChidren(functionView.FLayoutView());
      if (!MainView.IsGatewayType)
      {
        functionView.frameLayout.Y = Application.GetRealHeight(0);
      }
      //场景
      LogicView.SelectTypeView sceneView = new LogicView.SelectTypeView();
      sceneView.frameLayout.Y = functionView.frameLayout.Bottom;
            sceneView.frameLayout.Y = timeView.frameLayout.Bottom;
      sceneView.btnText.TextID = StringId.Scenes;
      sceneView.btnIcon.UnSelectedImagePath = "LogicIcon/scene.png";
            if (MainView.IsGatewayType)
            {
      viewLayout.AddChidren(sceneView.FLayoutView());
            }
      //室外变化
      LogicView.SelectTypeView shiwaiView = new LogicView.SelectTypeView();
      shiwaiView.frameLayout.Y = sceneView.frameLayout.Bottom;
@@ -71,11 +62,15 @@
      likiadaodaView.frameLayout.Y = shiwaiView.frameLayout.Bottom;
      likiadaodaView.btnText.TextID = StringId.likiadaoda;
      likiadaodaView.btnIcon.UnSelectedImagePath = "LogicIcon/location.png";
            int count = 0;//输入类型个数
      if (MainView.IsGatewayType)
      {
                count = 4;
        viewLayout.AddChidren(likiadaodaView.FLayoutView());
      }
            ////功能
            ///产品经理君焕要求,设备功能移到这里。<2022-3-7>
            new FunTpye(LogicMethod.condition_if).FunTypeView(viewLayout, likiadaodaView.frameLayout.Bottom, count);
      #endregion
@@ -89,14 +84,7 @@
        MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
      };
      //功能
      functionView.btnClick.MouseUpEventHandler += (sen, e) =>
      {
        FunTpye funTpye = new FunTpye();
        MainPage.BasePageView.AddChidren(funTpye);
        funTpye.Show(LogicMethod.condition_if);
        MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
      };
      //场景点击事件
      sceneView.btnClick.MouseUpEventHandler += (sen, e) =>
      {
@@ -115,7 +103,6 @@
        weather.Show();
        MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
      };
      //地理围栏
      likiadaodaView.btnClick.MouseUpEventHandler += (sen, e) =>
      {
@@ -124,7 +111,6 @@
      #endregion
    }
    /// <summary>
    /// 添加场景
    /// </summary>
@@ -326,5 +312,6 @@
        Logic.currlogic.input.Add(input);
      }
    }
  }
}