public override void LoadSettings()
{
try
{
if (Page.IsPostBack == false)
{
//Check for existing settings and use those on this page
//Settings["SettingName"]
/* uncomment to load saved settings in the text boxes */
if (Settings.Contains("ExportTypeDropDownCssClass"))
ExportTypeDropDownCssClassTextBox.Text = Settings["ExportTypeDropDownCssClass"].ToString();
if (Settings.Contains("ExportButtonCssClass"))
ExportButtonCssClassTextBox.Text = Settings["ExportButtonCssClass"].ToString();
if (Settings.Contains("PaneSelectionDropDownCssClass"))
PaneSelectionDropDownCssClassTextBox.Text = Settings["PaneSelectionDropDownCssClass"].ToString();
if (Session["PanesDropDown_" + TabId.ToString()] != null)
{
ListItemCollection items = (ListItemCollection)Session["PanesDropDown_" + TabId.ToString()];
foreach (ListItem item in items)
{
PanesDropDownList.Items.Add(item);
}
}
if (Settings.Contains("DefaultPane"))
DefaultPaneTextBox.Text = Settings["DefaultPane"].ToString().Replace("dnn_", string.Empty);
if (PanesDropDownList.Items.Count <= 0)
{
DefaultPaneTextBox.Visible = true;
PanesDropDownList.Visible = false;
}
if (Settings.Contains("HideDefaultPane"))
HideDefaultPaneCheckBox.Checked = Convert.ToBoolean(Settings["HideDefaultPane"].ToString());
}
}
catch (Exception exc) //Module failed to load
{
Exceptions.ProcessModuleLoadException(this, exc);
}
}