public void Run() { while (true) { try { switch (_view.ShowMenu(LoggedUser != null)) { case ActionResult.Login: Login(); break; case ActionResult.Logout: Logout(); break; case ActionResult.Register: Register(); break; default: return; } } catch (Exception exception) { _view.ShowError(exception.Message); _view.Sleep(); } } }