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(); }
private void YearlyWriter_Tick(object sender, EventArgs e) { YearlyWriter.Stop(); SaveYearlySums(); YearlyWriter.Start(); }