コード例 #1
0
 private void SettingsInit()
 {
     _settings          = SettingSaver.UpdateProgram();
     logMod.Checked     = _settings.IsLog;
     email.Text         = _settings.Email;
     fileSize.Value     = _settings.FileSize == 0 ? 5000 : _settings.FileSize;
     hideMode.Checked   = _settings.HideCheck;
     hotKeyMode.Checked = _settings.IsHotKey;
 }
コード例 #2
0
 private void SaveSettingsButtonClick(object sender, EventArgs e)
 {
     _settings.Email     = email.Text;
     _settings.IsLog     = logMod.Checked;
     _settings.FileSize  = (long)fileSize.Value;
     _settings.HideCheck = hideMode.Checked;
     _settings.IsHotKey  = hotKeyMode.Checked;
     if (hideMode.Checked)
     {
         Hide();
     }
     SettingSaver.SaveConfig(_settings);
 }