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); }
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); }