/// <summary> /// Initializes a new instance of the <see cref="MainWindowViewModel"/> class. /// </summary> public MainWindowViewModel() : base() { HomeViewCommand = new Command(OnHomeViewCommandExecute, OnHomeViewCommandCanExecute); AddReport = new Command(OnAddReportExecute, OnAddReportCanExecute); CurrentViewModel = new HomeViewModel(); }
/// <summary> /// Method to invoke when the name command is executed. /// </summary> private void OnHomeViewCommandExecute() { // TODO: Handle command logic here CurrentViewModel = new HomeViewModel(); }