示例#1
0
 private void _RecvResult(string msg)
 {
     resultUC = new ResultUC(this);
     resultUC.label1.Text = gameUC.result;
     gameUC.pnResult.Controls.Clear();
     gameUC.pnResult.Controls.Add(resultUC);
     gameUC.pnResult.Visible = true;
 }
示例#2
0
        private void GameStart()
        {
            this.Text = "틀린그림찾기";
            this.Size = new Size(1200, 700);
            pnMain.Size = new Size(1190, 669);
            this.Location = new Point(50, 30);
            pbExit.Location = new Point(pnMenuBar.Width - 30, pbExit.Location.Y);
            pbMinimum.Location = new Point(pbExit.Location.X - 30, pbMinimum.Location.Y);

            pnMain.Controls.Clear();
            gameUC = new GameUC(this);
            pnMain.Controls.Add(gameUC);

            lobbyUC = new LobbyUC(this);
            gameUC.pnBoard.Controls.Add(lobbyUC);

            resultUC = new ResultUC(this);
            resultUC.label1.Text = gameUC.result;
            gameUC.pnResult.Controls.Add(resultUC);
            resultUC.label1.Text = gameUC.result;
            gameUC.pnResult.Visible = false;
        }