예제 #1
0
        /// <summary>
        /// Function to be passed as Action to the ViewModels that needs to change
        /// the View manually.
        /// Note that this assumes LoginVM case it's the LoginViewModel at index [0],
        /// and ForgotPasswordVM is at index [2].
        /// </summary>
        /// <param name="viewModel">ViewModel to go.</param>
        public void GoToViewModel(RequestedViewToGO viewModel)
        {
            switch (viewModel)
            {
            case RequestedViewToGO.LoginVM:
                ChangeViewModel(_mapPageViewModels[0]);
                break;

            case RequestedViewToGO.ForgotPasswordVM:
                ChangeViewModel(_mapPageViewModels[2]);
                break;
            }
        }
예제 #2
0
 /// <summary>
 /// Function to be passed as Action to the ViewModels that needs to change
 /// the View manually.
 /// Note that this assumes LoginVM case it's the LoginViewModel at index [0], 
 /// and ForgotPasswordVM is at index [2].
 /// </summary>
 /// <param name="viewModel">ViewModel to go.</param>
 public void GoToViewModel(RequestedViewToGO viewModel)
 {
     switch (viewModel)
     {
         case RequestedViewToGO.LoginVM:
             ChangeViewModel(_mapPageViewModels[0]);
             break;
         case RequestedViewToGO.ForgotPasswordVM:
             ChangeViewModel(_mapPageViewModels[2]);
             break;
     }
 }