Пример #1
0
        public void SaveChanged()
        {
            TimerSheetViewModel tsvm = new TimerSheetViewModel(Countdown.Hours, Countdown.Minutes, Countdown.Seconds, Countdown.Description);

            timer.Tick         += tsvm.Tick;
            tsvm.DoRemoveButton = RemoveButton;
            TimerSheets.Add(tsvm);
            Countdown.Hours       = 0;
            Countdown.Minutes     = 0;
            Countdown.Seconds     = 0;
            Countdown.Description = "";
        }
Пример #2
0
 private void RemoveButton(TimerSheetViewModel viewModel)
 {
     TimerSheets.Remove(viewModel);
 }