private void Restart(MainModel model) { model.EndTime = DateTime.UtcNow.AddMinutes(25); model._timer.Start(); Step(); }
private void MainWindow_OnLoaded(object sender, RoutedEventArgs e) { var model = new MainModel(); this.DataContext = model; }