protected void LoadDefaultDocking()
        {
            base.BeforeGameCreateDocking();

            dp.Visible = false;
            dp.SuspendLayout();

            LoadPanels();
            base.SetSelectedPanels();

            ChessBoard.Activate();

            dp.ResumeLayout(true);
            dp.Visible = true;
        }
        protected override void GameCreateDocking()
        {
            SetPanels();

            if (IsCreateDockingRequied)
            {
                base.BeforeGameCreateDocking();
                LoadPanels();
            }

            base.AfterGameCreateDocking();

            ChessBoard.Activate();
            ChessBoard.Focus();
        }
Exemplo n.º 3
0
        protected void SetSelectedPanels()
        {
            ChessBoard.Activate();
            NotationUc.Activate();

            switch (this.Game.GameMode)
            {
            case GameMode.OnlineHumanVsHuman:
            case GameMode.OnlineHumanVsEngine:
            case GameMode.OnlineEngineVsEngine:
                if (ChatUc != null)
                {
                    ChatUc.Activate();
                }
                break;

            case GameMode.Kibitzer:
                break;

            default:
                break;
            }
        }