Esempio n. 1
0
        protected override void Dispose(bool disposing)
        {
            spriteManager.Dispose();
            if (commentInputTextbox != null)
            {
                commentInputTextbox.Dispose();
            }

            base.Dispose(disposing);
        }
Esempio n. 2
0
        protected override void Dispose(bool disposing)
        {
            KeyboardHandler.OnKeyRepeat -= KeyboardHandler_OnKeyRepeat;
            BanchoClient.OnConnect      -= BanchoClient_OnConnect;

            LeaveLobby(false);

            spriteManager.Dispose();
            spriteManagerFilters.Dispose();
            areaGameList.Dispose();
            Matches.Clear();

            filterTextBox.Dispose();

            base.Dispose(disposing);
        }
Esempio n. 3
0
        protected override void Dispose(bool disposing)
        {
            KeyboardHandler.OnKeyPressed -= KeyboardHandler_OnKeyPressed;

            if (GameBase.Mode != Modes.MatchSetup && GameBase.Mode != Modes.SelectMulti &&
                Lobby.Status != LobbyStatus.Idle &&
                Lobby.Status != LobbyStatus.Play)
            {
                OnLeaveGame(null, null);
            }

            if (Lobby.Status == LobbyStatus.Play || Lobby.Status == LobbyStatus.Setup)
            {
                if (!Lobby.chatOpenOnStart && ChatEngine.IsVisible)
                {
                    ChatEngine.Toggle(true);
                }
            }

            spriteManager.Dispose();
            detailsGameName.Dispose();
            content.Unload();
            base.Dispose(disposing);
        }
Esempio n. 4
0
 public override void Dispose()
 {
     base.Dispose();
     Textbox.Dispose();
 }
Esempio n. 5
0
        protected override void Dispose(bool disposing)
        {
            gameName.Dispose();

            base.Dispose(disposing);
        }