Example #1
0
 private void enterButton_Click(object sender, EventArgs e)
 {
     _enterForm = new EnterForm();
     if (_enterForm.ShowDialog(this) != DialogResult.OK || Connected)
     {
         return;
     }
     _client = new Client(_enterForm.Name, this, _port, _host);
     _client.Connect();
     Connected = true;
     sendButton.Enabled = true;
     textBox.Enabled = true;
     exitButton.Enabled = true;
     clientsButton.Enabled = true;
     enterButton.Enabled = false;
 }
Example #2
0
 private void enterButton_Click(object sender, EventArgs e)
 {
     _enterForm = new EnterForm();
     if (_enterForm.ShowDialog(this) != DialogResult.OK || Connected)
     {
         return;
     }
     _client = new Client(_enterForm.Name, this, _port, _host);
     _client.Connect();
     Connected             = true;
     sendButton.Enabled    = true;
     textBox.Enabled       = true;
     exitButton.Enabled    = true;
     clientsButton.Enabled = true;
     enterButton.Enabled   = false;
 }