Example #1
0
 private void socketStart()
 {
     socket       = new PrivateSocket(this, Int32.Parse(txtPort.Text));
     socketThread = new Thread(socket.StartListening);
     socketThread.Start();
     btnStart.Enabled  = false;
     txtPort.Enabled   = false;
     btnStop.Enabled   = true;
     gbAccount.Enabled = false;
     lblStatus.Text    = "Socket Started";
 }
Example #2
0
 private void socketStart()
 {
     socket = new PrivateSocket(this, Int32.Parse(txtPort.Text));
     socketThread = new Thread(socket.StartListening);
     socketThread.Start();
     btnStart.Enabled = false;
     txtPort.Enabled = false;
     btnStop.Enabled = true;
     gbAccount.Enabled = false;
     lblStatus.Text = "Socket Started";
 }