コード例 #1
0
 private void ConnectAsClient(string ip, int port)
 {
     con = new SocketManagement(ip, port);
     if (con.StartAsClient())
     {
         GameStart();
     }
 }
コード例 #2
0
ファイル: GameForm.cs プロジェクト: chrystyan96/tictactoe
 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;
 }