コード例 #1
0
        private void NavigateToViewMethod(string destination)
        {
            try
            {
                if (Destination != destination)
                {
                    Destination = destination;
                    switch (destination)
                    {
                    case "ShiftDisplay":
                        CurrentViewModel = new ShiftDisplayViewModel();
                        break;

                    default:
                        break;
                    }
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }
        }
コード例 #2
0
 public ShiftViewModel()
 {
     Destination       = "ShiftDisplay";
     _currentViewModel = new ShiftDisplayViewModel();
 }