示例#1
0
文件: TrayForm.cs 项目: o2shik/Qap
 private void TrayForm_FormClosed(object sender, FormClosedEventArgs e)
 {
     _qapSettings.MinimizeToTray      = toTrayCheckBox.Checked;
     _qapSettings.StartInTray         = startInTray.Checked;
     _qapSettings.CapturePeriod       = (int)capturePeriodInSeconds.Value;
     _qapSettings.CaptureActiveWindow = captureActiveWindowCheckBox.Checked;
     QapSettings.Save(_qapSettings);
 }
示例#2
0
文件: TrayForm.cs 项目: o2shik/Qap
 public TrayForm()
 {
     InitializeComponent();
     _qapSettings                        = QapSettings.Load();
     toTrayCheckBox.Checked              = _qapSettings.MinimizeToTray;
     startInTray.Checked                 = _qapSettings.StartInTray;
     capturePeriodInSeconds.Value        = _qapSettings.CapturePeriod;
     captureActiveWindowCheckBox.Checked = _qapSettings.CaptureActiveWindow;
     UpdateModeStatus(captureActiveWindowCheckBox.Checked);
     UpdateFileStatus();
     HideInTray(startInTray.Checked, true);
 }