private void AfterTick(ElapsedEventArgs e) { if (CanSave) { DoSaveList(TimerSheets.ToArray(), OutputFilename); } }
public void SaveChanges() { TimerSheetViewModel tsvm = new TimerSheetViewModel(Countdown.Hours, Countdown.Minutes, Countdown.Seconds, Countdown.Description); timer.Tick += tsvm.Tick; tsvm.DoRemoveButton = RemoveButton; TimerSheets.Add(tsvm); }
private void RemoveButton(TimerSheetViewModel viewModel) { TimerSheets.Remove(viewModel); }