Esempio n. 1
0
        //加载配置
        private void LoadConfig()
        {
            #region 基本配置加载
            _areas = NormalConfigServer.GetInstance().LoadConfig();
            _arealist.RefreshAreaList();
            #endregion

            #region 时间轴配置加载
            _shaft_actions = NormalConfigServer.GetInstance().LoadTimeShaft();
            _shaftList.RefreshActionList();
            #endregion

            #region 预约配置加载
            _orders = NormalConfigServer.GetInstance().LoadOrderConfig();
            _orderlist.RefreshOprations();
            #endregion

            #region 常用继电器配置加载
            _relays = RelayConfigServer.GetInstance().LoadRelayConfig();
            _relayModulelist.RefreshRelayList();
            #endregion

            #region 常用投影机配置加载
            _prjSettings = PrjConfigServer.GetInstance().LoadPrjData();
            _prjsettinglist.RefreshPrjSetting();
            #endregion
            _userdefineNames = CustomConfigServer.GetInstance().LoadUserDefinedData();
            _userdefinedNamelist.RefreshAreaList();
            #region 自定义命令加载

            #endregion
        }
Esempio n. 2
0
        private void SaveConfig()
        {
            #region 基本配置
            NormalConfigServer.GetInstance().SaveConfig(_arealist.Areas, _shaftList.ActionList);//保存配置
            NormalConfigServer.GetInstance().SaveOrderConfig(_timeList.Orders);
            #endregion

            #region 继电器配置保存
            RelayConfigServer.GetInstance().SaveRelayConfig(_relayModulelist.RelayModules);
            #endregion

            #region 投影机配置
            PrjConfigServer.GetInstance().SavePrjConfig(_prjsettinglist.UpSettings);
            #endregion

            #region 自定义命令保存
            CustomConfigServer.GetInstance().SaveUserDefinedData(_userdefinedNamelist.DefinedNames);
            #endregion
        }