private void StartExecute(object o) { HockeyClient.Current.TrackEvent("Start"); History.Clear(); Next(); NextCommand.OnCanExecuteChanged(); StopCommand.OnCanExecuteChanged(); ((Button)o)?.Focus(FocusState.Programmatic); }
private void StopExecute(object o) { HockeyClient.Current.TrackEvent( "Stop", new Dictionary <string, string>() { ["Elapsed"] = stopwatch.Elapsed.ToString("c"), ["Count"] = History.Count.ToString(CultureInfo.InvariantCulture) }); updateTimer.Stop(); stopwatch.Stop(); StartCommand.OnCanExecuteChanged(); NextCommand.OnCanExecuteChanged(); ((Button)o)?.Focus(FocusState.Programmatic); }
private void UpdateTemplatesAvailable(bool value) { _templatesAvailable = value; NextCommand.OnCanExecuteChanged(); }
private void UpdateHasValidationErrors(bool value) { _hasValidationErrors = value; NextCommand.OnCanExecuteChanged(); FinishCommand.OnCanExecuteChanged(); }
public void UpdateCanGoForward(bool canGoForward) { _canGoForward = canGoForward; NextCommand.OnCanExecuteChanged(); }