public static void ShowGamePlan(Package InCommingPackage) { ServerConnectForm.ServerConnectFormref.BeginInvoke(new Action(delegate() { Gamearea ga = new Gamearea(InCommingPackage.Data); ga.OpponentIp = InCommingPackage.From; ga.Show(); })); }
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; }