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()); } }
public ShiftViewModel() { Destination = "ShiftDisplay"; _currentViewModel = new ShiftDisplayViewModel(); }