internal void Navigate(ViewType viewType) { _navigationModel.Navigate(viewType); if (viewType != ViewType.TaskManager) { NavigationPerformed?.Invoke(this, null); } }
internal void Navigate(ViewType viewType) { if (_navigationModel == null) { MessageBox.Show(" " + _navigationModel); } _navigationModel.Navigate(viewType); }
internal async void Navigate(ViewType viewType) { if (viewType == ViewType.SignIn && !string.IsNullOrEmpty(StationManager.CurrentLocalUser.Login)) { LoaderManager.Instance.ShowLoader(); var result = await Task.Run(() => { Thread.Sleep(1000); User currentUser; try { currentUser = StationManager.Client.GetUser(StationManager.CurrentLocalUser.Login); } catch (Exception ex) { MessageBox.Show($"Sign In failed for user {StationManager.CurrentLocalUser.Login}. Reason:{Environment.NewLine}{ex.Message}"); return(false); } if (currentUser == null) { MessageBox.Show( $"Sign In failed for user {StationManager.CurrentLocalUser.Login}. Reason:{Environment.NewLine}User does not exist."); return(false); } if (currentUser.Password != StationManager.CurrentLocalUser.Password) { MessageBox.Show($"Sign In failed for user {StationManager.CurrentLocalUser.Login}. Reason:{Environment.NewLine}Wrong Password."); return(false); } StationManager.CurrentUser = currentUser; MessageBox.Show($"Sign In successful for user {StationManager.CurrentLocalUser.Login}."); return(true); }); LoaderManager.Instance.HideLoader(); if (result) { _navigationModel.Navigate(ViewType.Main); } } else { _navigationModel.Navigate(viewType); } }
internal void Navigate(ViewType viewType, ProcessModel processModel) { if (processModel != null || viewType != ViewType.ProcessInfo) { _navigationModel.Navigate(viewType, processModel); } else { MessageBox.Show("Please, choose a process"); } }
internal void Navigate(ViewType viewType) { _navigationModel.Navigate(viewType); }
internal object Navigate(ViewType viewType) { return(_navigationModel.Navigate(viewType)); }
internal void Navigate(ViewType viewType, ProcessModel pm) { _navigationModel.Navigate(viewType, pm); return; }
internal void Navigate(ViewType viewType) { _navigationModel.Navigate(viewType); NavigationPerformed?.Invoke(this, null); }
internal void Navigate(ViewType viewType, ProcessClass selectedProcess) { _navigationModel.Navigate(viewType, selectedProcess); }
/// <summary> /// Navigate to a specific view. /// </summary> /// <param name="view">A view to navigate to.</param> internal void Navigate(INavigatable view) { _navigationModel.Navigate(view); }
internal void Navigate(ViewType viewType, MyProcess process = null) { _navigationModel.Navigate(viewType, process); }