protected SettingsWrapper(int moduleID) { _moduleID = moduleID; _tabModuleID = 0; _wrapperType = SettingsWrapperType.Module; _controller = new ModuleController(); }
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 + "."); } }
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() + "."); } }
public SettingsWrapper(int moduleId) { this.moduleId = moduleId; this.tabModuleId = 0; this.wrapperType = SettingsWrapperType.Module; this.controller = new ModuleController(); }