/// <summary> /// handles updating the module settings for this control /// </summary> public override void UpdateSettings() { try { PARentals_ScheduleSettings settingsData = new PARentals_ScheduleSettings(this.TabModuleId); settingsData.PA_ModuleID = ddlPAModuleID.SelectedValue.ToString(); } catch (Exception ex) { Exceptions.ProcessModuleLoadException(this, ex); } }
/// <summary> /// handles the loading of the module setting for this /// control /// </summary> public override void LoadSettings() { try { if (!IsPostBack) { BindModules(); PARentals_ScheduleSettings settingsData = new PARentals_ScheduleSettings(this.TabModuleId); if (settingsData.PA_ModuleID != null) { ddlPAModuleID.SelectedValue = settingsData.PA_ModuleID.ToString(); } } } catch (Exception ex) { Exceptions.ProcessModuleLoadException(this, ex); } }
public void GetSettings() { try { PARentals_ScheduleSettings settingsData = new PARentals_ScheduleSettings(this.TabModuleId); if (settingsData.PA_ModuleID != null) { string s = settingsData.PA_ModuleID.ToString(); string[] parts = s.Split('-'); string i1 = parts[0]; string i2 = parts[1]; _PAModuleID = Convert.ToInt32(i2); _PATabID = Convert.ToInt32(i1); } } catch (Exception ex) { Exceptions.ProcessModuleLoadException(this, ex); } }