コード例 #1
0
        private void NavigateToViewMethod(string destination)
        {
            switch (destination)
            {
            case "SpendingDisplay":
                CurrentViewModel = new SpendingDisplayViewModel();
                break;

            case "SpendingReport":
                CurrentViewModel = new SpendingReportViewModel();
                break;

            default:
                break;
            }
        }
コード例 #2
0
 public SpendingViewModel()
 {
     _currentViewModel = new SpendingDisplayViewModel();
 }