示例#1
0
 public static void ShowGamePlan(Package InCommingPackage)
 {
     ServerConnectForm.ServerConnectFormref.BeginInvoke(new Action(delegate()
     {
         Gamearea ga = new Gamearea(InCommingPackage.Data);
         ga.OpponentIp = InCommingPackage.From;
         ga.Show();
     }));
 }
示例#2
0
 public static void ShowGamePlan(Package InCommingPackage)
 {
     ServerConnectForm.ServerConnectFormref.BeginInvoke(new Action(delegate()
     {
         Gamearea ga   = new Gamearea(InCommingPackage.Data);
         ga.OpponentIp = InCommingPackage.From;
         ga.Show();
     }));
 }
示例#3
0
 public Gamearea(string OpponentName)
 {
     InitializeComponent();
     GameAreaFormref = this;
     button1ref      = button1;
     button2ref      = button2;
     button3ref      = button3;
     button4ref      = button4;
     button5ref      = button5;
     button6ref      = button6;
     button7ref      = button7;
     button8ref      = button8;
     button9ref      = button9;
     label2.Text     = OpponentName;
 }
示例#4
0
 public Gamearea(string OpponentName)
 {
     InitializeComponent();
     GameAreaFormref = this;
     button1ref = button1;
     button2ref = button2;
     button3ref = button3;
     button4ref = button4;
     button5ref = button5;
     button6ref = button6;
     button7ref = button7;
     button8ref = button8;
     button9ref = button9;
     label2.Text = OpponentName;
 }