//Open public Client(Player a, GetPlayerMove b, FindMatch c, RichTextBox d, ResetGame e, MainForm f) { player = a; wc = new WebClient(); mainform = f; getplayermove = b; findmatch = c; output = d; resetgame = e; MatchFinder = new Thread(FindQueue); MoveFinder = new Thread(GetOpponentMove); }
//LOAD private void NewForm_Load(object sender, EventArgs e) { graphics = Screen.CreateGraphics(); unitdestroly = OnUnitDestroly; sakkfor = OnSakkFor; findmatch = MatchFound; getplayermove = OppMove; resetgame = Reset; endform = new GEndForm(this); label5.Text += version; this.Opacity = 0; nameinput = new Chess.NameInput(this); nameinput.Show(); }