Beispiel #1
0
        public void logout()
        {
            CommunicationLayer.Instance.Logout();//obavesti server o logoutu , ta metoda nije implementovana
            menuForm.exitApp = false;
            menuForm.Close();
            FormLayer.Instance.menuForm = null;
            LoginForm lf = new LoginForm();

            FormLayer.Instance.loginForm = lf;
            lf.Show();
        }
        protected override void OnLeave(ProcedureOwner procedureOwner, bool isShutdown)
        {
            base.OnLeave(procedureOwner, isShutdown);

            GameEntry.Event.Unsubscribe(OpenUIFormSuccessEventArgs.EventId, OnOpenUIFormSuccess);

            if (m_MenuForm != null)
            {
                m_MenuForm.Close(isShutdown);
                m_MenuForm = null;
            }
        }
Beispiel #3
0
        public void Close()
        {
            if (theKeyboardBindingsForm != null)
            {
                Async.UI(delegate { theKeyboardBindingsForm.Close(); }, theKeyboardBindingsForm, false);
            }
            if (theMenuForm != null)
            {
                Async.UI(delegate { theMenuForm.Close(); }, theMenuForm, false);
            }
            theGameEngine.Close();
            theRendererManager.Close();
//            theRenderer.Close();
            theGameStatus.Close();
        }