Пример #1
0
 protected void btnSave_Click(object sender, EventArgs e)
 {
     if (_modcontroler != null)
     {
         _modcontroler.ModInfo.Enabled = rblEnabled.SelectedValue == "1";
         _modcontroler.Save();
     }
 }
Пример #2
0
 protected void btnSave_Click(object sender, EventArgs e)
 {
     if (_modcontroler != null)
     {
         _modcontroler.ModInfo.Enabled = rblEnabled.SelectedValue == "1";
         _modcontroler.ModInfo.Settings["MediaItems"] = txtMediaItems.Text;
         _modcontroler.Save();
     }
 }
Пример #3
0
 protected void btnSave_Click(object sender, EventArgs e)
 {
     if (_modcontroler != null)
     {
         _modcontroler.ModInfo.Enabled = rblEnabled.SelectedValue == "1";
         _modcontroler.ModInfo.Settings["EventShowHolidays"] = rblHolidays.SelectedValue;
         _modcontroler.ModInfo.Settings["EventAdminRoles"]   = String.Join(",", _dsRoles.ToArray());
         _modcontroler.Save();
     }
 }
Пример #4
0
        protected void btnSave_Click(object sender, EventArgs e)
        {
            if (_modcontroler != null)
            {
                _modcontroler.ModInfo.Enabled = rblEnabled.SelectedValue == "1";
                _modcontroler.ModInfo.Settings["FileUploadLocation"]         = txtUploadLocation.Text;
                _modcontroler.ModInfo.Settings["AllowedImageTypes"]          = txtAllowedImageTypes.Text;
                _modcontroler.ModInfo.Settings["AllowedAttachmentTypes"]     = txtAllowedAttachmentTypes.Text;
                _modcontroler.ModInfo.Settings["FileSizeLimit"]              = txtFileSizeLimit.Text;
                _modcontroler.ModInfo.Settings["TotalUploadLimitFileSize"]   = txtTotalUploadLimitFileSize.Text;
                _modcontroler.ModInfo.Settings["TotalUploadLimitFileNumber"] = txtTotalUploadLimitFileNumber.Text;
                _modcontroler.ModInfo.Settings["AllowImageUpload"]           = rblAllowImageUpload.SelectedValue;
                _modcontroler.ModInfo.Settings["AllowAttachments"]           = rblAllowAttachments.SelectedValue;

                _modcontroler.Save();
            }
        }