Example #1
0
 public SettingsForm()
 {
     InitializeComponent();
     TxtExternalAdress.Text                 = settings.ExternalAdress;
     TxtWebLocation.Text                    = settings.WebPath;
     ChbDeleteOnExit.Checked                = settings.DeleteOnExit;
     ChbSendToTrash.Enabled                 = settings.DeleteOnExit;
     ChbStartWithWindows.Checked            = settings.StartWithWindows;
     ChbSendToTrash.Checked                 = settings.MoveToTrash;
     ChbAddIndexToWebPath.Checked           = settings.AddIndexToWebPath;
     SystemEvents.SessionEnding            += SystemEvents_SessionEnding;
     DropdownModifier1.SelectedIndex        = DropdownModifier1.FindString(settings.ModifierKeys[0].ToString());
     DropdownModifier2.SelectedIndex        = DropdownModifier2.FindString(settings.ModifierKeys[1].ToString());
     DropdownKey.SelectedIndex              = DropdownKey.FindString(settings.Key.ToString().ToUpper(CultureInfo.InvariantCulture));
     TxtScreenshotDateTimeFormatString.Text = settings.ScreenshotDateTimeFormatString;
     ChbShouldShowProgressbar.Checked       = settings.ShouldShowProgressbar;
     TxtThreshold.Enabled                   = settings.ShouldShowProgressbar;
     TxtThreshold.Text = settings.PopProgressDialogThreshold.ToString(CultureInfo.InvariantCulture);
     SetKeyboardHook();
     FileManagement = new FileManagement(settings, logForm);
     this.Hide();
     this.ShowInTaskbar = false;
 }
Example #2
0
 private void SaveChanges()
 {
     SaveSettings(SettingsPath);
     FileManagement = new FileManagement(settings, logForm);
 }