Exemplo n.º 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());
            }
        }
Exemplo n.º 2
0
 public ShiftViewModel()
 {
     Destination       = "ShiftDisplay";
     _currentViewModel = new ShiftDisplayViewModel();
 }