示例#1
0
 public void SignOut()
 {
     OnSignedOutEvent?.Invoke();
     Msf.Client.Auth.SignOut(true);
     ViewsManager.HideAllViews();
     OnBeforeClientConnectedToServer();
 }
示例#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);
 }
示例#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();
        }
示例#5
0
        public void SignOut()
        {
            OnSignedOutEvent?.Invoke();

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

            ViewsManager.HideAllViews();

            Initialize();
        }
示例#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();
        }
示例#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();
            }));
        }
 /// <summary>
 /// Sign out user
 /// </summary>
 public void SignOut()
 {
     Logs.Debug("Sign out");
     Mst.Client.Auth.SignOut(true);
     ViewsManager.HideAllViews();
 }