Exemplo n.º 1
0
 /// <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);
     }
 }
Exemplo n.º 2
0
        /// <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);
            }
        }
Exemplo n.º 3
0
        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);
            }
        }