private void ConnectAsClient(string ip, int port) { con = new SocketManagement(ip, port); if (con.StartAsClient()) { GameStart(); } }
public GameForm(Main owner, bool isServer, SocketManagement con) { this.isMyTurn = isServer; this.Owner = owner; this.isServer = isServer; new ResizeForBorderlessForm(this) { AllowResizeAll = false, AllowMove = true }; InitializeComponent(); this.con = con; }