Exemple #1
0
        //处理刷新棋盘和重新开始的消息
        public void handleAginMessage(string content)
        {
            string talk = content;
            AginMessageEventArgs crg = new AginMessageEventArgs();
            crg.Agin = talk;
            OnAginMessage(this, crg);

        }
Exemple #2
0
 //重新开始
 public void AginMessage(object sender, ChessClass.AginMessageEventArgs e)
 {
     if (this.InvokeRequired)
     {
         this.Invoke(
             new EventHandler <ChessClass.AginMessageEventArgs>(AginMessage),
             new object[] { sender, e });
     }
     else
     {
         if (e.Agin == "OK?")
         {
             CanAgins  = false;
             Conqueror = false;
             CanAgin   = true;
             CanDown   = true;
             Agin_if   = true;
         }
         Agin();
     }
 }