示例#1
0
        protected SettingsWrapper(int moduleID)
        {
            _moduleID    = moduleID;
            _tabModuleID = 0;
            _wrapperType = SettingsWrapperType.Module;

            _controller = new ModuleController();
        }
示例#2
0
        protected SettingsWrapper(int moduleID, int tabID)
        {
            _moduleID    = moduleID;
            _wrapperType = SettingsWrapperType.TabModule;

            _controller = new ModuleController();

            ModuleInfo moduleInfo = _controller.GetModule(moduleID, tabID);

            if (moduleInfo != null)
            {
                _tabModuleID = moduleInfo.TabModuleID;
            }
            else
            {
                throw new ApplicationException("ModuleID " + moduleID + " does not exist on TabID " + tabID + ".");
            }
        }
示例#3
0
        public SettingsWrapper(int moduleId, int tabId)
        {
            this.moduleId = moduleId;
            this.wrapperType = SettingsWrapperType.TabModule;

            this.controller = new ModuleController();

            ModuleInfo moduleInfo = controller.GetModule(moduleId, tabId);

            if (moduleInfo != null)
            {
                this.tabModuleId = moduleInfo.TabModuleID;
            }
            else
            {
                throw new ApplicationException("ModuleID " + moduleId.ToString() + " does not exist on TabID " + tabId.ToString() + ".");
            }
        }
示例#4
0
        public SettingsWrapper(int moduleId)
        {
            this.moduleId = moduleId;
            this.tabModuleId = 0;
            this.wrapperType = SettingsWrapperType.Module;

            this.controller = new ModuleController();
        }