示例#1
0
 private void Client_AutoAccepInvite(TicTacToe.Client.Client obj)
 {
     this.InvokeUI(() => {
         this.pnl_PlayerArea_2.Visible         = true;
         this.pnl_PlayerArea_2.BackgroundImage = global::DCN.TicTacToe.UI.Client.Client_Resx.avatar_player_2;
     });
 }
示例#2
0
        private void Client_SessionEndedByTheRemoteClient(TicTacToe.Client.Client obj)
        {
            this.InvokeUI(() => {
                if (this.pnl_GamePlay.Visible)
                {
                    SkinOtherQuit otherQuit = new SkinOtherQuit();
                    otherQuit.ActionForm   += (option) => {
                        if (option == Options.YES)
                        {
                            this.pnl_Notify.SendToBack();
                        }
                    };
                    this.pnl_Notify.Controls.Add(otherQuit);
                    otherQuit.BringToFront();
                    this.pnl_Notify.BringToFront();

                    this.pnl_PlayerArea_2.Visible    = false;
                    this.btn_Player_1_Notify.Visible = this.btn_Player_2_Notify.Visible = false;
                    this.btn_Already.Visible         = false;
                }
            });
        }
示例#3
0
 private void Client_TextMessageReceived(TicTacToe.Client.Client client, string message)
 {
     ChatMessageBox(message);
     Debug.WriteLine("Message received: " + message);
     //Status("Message received: " + message);
 }