//client form public GameForm(String hostIp, int hostPM) { InitializeComponent(); this.DoubleBuffered = true; bp = new BricksPanel(); initClient_Communication(hostIp, hostPM); }
//host form public GameForm(int hostPM) { InitializeComponent(); this.DoubleBuffered = true; bp = new BricksPanel(); initHost_Communication(hostPM); }