Example #1
0
 public void ActivateTimers()
 {
     if (timersManuallyActivated)
     {
         return;
     }
     YearlyWriter.Start();
     CategoryWriter.Start();
     SumWriter.Start();
     try { NotifyTimer.Interval = Int32.Parse(NoticeBox.Text) * 1000; } catch { MessageBox.Show("Podano błędną wartość czasu pomiędzy podaniem statusu"); }
     NotifyTimer.Start();
 }
Example #2
0
 private void YearlyWriter_Tick(object sender, EventArgs e)
 {
     YearlyWriter.Stop();
     SaveYearlySums();
     YearlyWriter.Start();
 }