Exemplo n.º 1
0
 public void SignOut()
 {
     OnSignedOutEvent?.Invoke();
     Msf.Client.Auth.SignOut(true);
     ViewsManager.HideAllViews();
     OnBeforeClientConnectedToServer();
 }
Exemplo n.º 2
0
 /// <summary>
 /// Sign out user
 /// </summary>
 public virtual void SignOut()
 {
     logger.Debug("Sign out");
     Mst.Client.Auth.SignOut(true);
     ViewsManager.HideAllViews();
     Mst.Events.Invoke(MstEventKeys.showSignInView);
 }
Exemplo n.º 3
0
        public void SignOut()
        {
            OnSignedOutEvent?.Invoke();
            Msf.Client.Auth.SignOut();

            ViewsManager.HideAllViews();
            Initialize();
        }
        public void SignOut()
        {
            logger.Debug("Sign out");

            OnSignedOutEvent?.Invoke();
            Msf.Client.Auth.SignOut(true);
            ViewsManager.HideAllViews();
            OnInitialize();
        }
Exemplo n.º 5
0
        public void SignOut()
        {
            OnSignedOutEvent?.Invoke();

            // Logout after diconnection
            Msf.Client.Auth.SignOut();

            ViewsManager.HideAllViews();

            Initialize();
        }
Exemplo n.º 6
0
        protected override void OnDisconnectedFromMaster()
        {
            // Logout after diconnection
            Msf.Client.Auth.SignOut();

            Msf.Events.Invoke(Event_Keys.showOkDialogBox, "The connection to the server has been lost. " +
                              "Please try again or contact the developers of the game or your internet provider.");

            ViewsManager.HideAllViews();
            Initialize();
            ConnectionTo_Master.Instance.StartConnection();
        }
Exemplo n.º 7
0
        protected override void OnClientDisconnectedFromServer()
        {
            // Logout after diconnection
            Msf.Client.Auth.SignOut();

            Msf.Events.Invoke(EventKeys.showOkDialogBox,
                              new OkDialogBoxViewEventMessage("The connection to the server has been lost. "
                                                              + "Please try again or contact the developers of the game or your internet provider.",
                                                              () =>
            {
                ViewsManager.HideAllViews();
                OnBeforeClientConnectedToServer();
                ClientToMasterConnector.Instance.StartConnection();
            }));
        }
Exemplo n.º 8
0
 /// <summary>
 /// Sign out user
 /// </summary>
 public void SignOut()
 {
     Logs.Debug("Sign out");
     Mst.Client.Auth.SignOut(true);
     ViewsManager.HideAllViews();
 }