Ejemplo n.º 1
0
    protected void SaveLB_Click(object sender, System.EventArgs e)
    {
      ModuleConfig cfg = (ModuleConfig)ReadConfig(typeof(ModuleConfig));
      if(cfg == null)
      {
        cfg = new ModuleConfig();
      }

      cfg.ThreadCreationRight = int.Parse(m_ThreadCreationRightCombo.SelectedValue);
      cfg.UseHTMLEditorOnTopLevel = m_TopLevelCheck.Checked;
      cfg.UseHTMLEditorOnLowerLevel = m_LowerLevelCheck.Checked;
      WriteConfig(cfg);
      RedirectBack();
    }
Ejemplo n.º 2
0
        protected void SaveLB_Click(object sender, System.EventArgs e)
        {
            ModuleConfig cfg = (ModuleConfig)ReadConfig(typeof(ModuleConfig));

            if (cfg == null)
            {
                cfg = new ModuleConfig();
            }

            cfg.ThreadCreationRight       = int.Parse(m_ThreadCreationRightCombo.SelectedValue);
            cfg.UseHTMLEditorOnTopLevel   = m_TopLevelCheck.Checked;
            cfg.UseHTMLEditorOnLowerLevel = m_LowerLevelCheck.Checked;
            WriteConfig(cfg);
            RedirectBack();
        }
Ejemplo n.º 3
0
        protected void Page_Load(object sender, System.EventArgs e)
        {
            if (!IsPostBack)
            {
                ModuleConfig cfg = (ModuleConfig)ReadConfig(typeof(ModuleConfig));
                if (cfg != null)
                {
                    m_ThreadCreationRightCombo.SelectedIndex = cfg.ThreadCreationRight;
                    m_TopLevelCheck.Checked   = cfg.UseHTMLEditorOnTopLevel;
                    m_LowerLevelCheck.Checked = cfg.UseHTMLEditorOnLowerLevel;
                }
            }

            m_TopLevelCheck.Enabled   = false;
            m_LowerLevelCheck.Enabled = false;
        }