Beispiel #1
0
 private void btnSave_Click(object sender, RoutedEventArgs e)
 {
     _config.ActivityId = UInt32.Parse(txtActivityId.Text);
     _config.IdleSecondsBeforeStopTracking = UInt32.Parse(txtIdleSecondsBeforeStopTracking.Text);
     _config.CloseAction = cbbCloseAction.SelectedIndex;
     _config.save();
     this.Close();
 }
Beispiel #2
0
 private void btnNo_Click(object sender, RoutedEventArgs e)
 {
     _answer = (int)Answers.No;
     if (ckbRemember.IsChecked == true)
     {
         Config.Config config = Config.Config.getConfig();
         config.CloseAction = 2;
         config.save();
     }
     this.Hide();
 }