private void btnListen_Click_1(object sender, EventArgs e) { IPAddress ipAddr = IPAddress.Parse(txtIp.Text); ChatServer mainServer = new ChatServer(ipAddr); ChatServer.StatusChanged += new StatusChangedEventHandler(mainServer_StatusChanged); mainServer.StartListening(); btnListen.Enabled = false; txtIp.Enabled = false; Name1.Start(); MessageBox.Show("Default Administrative Username and password is. Username: Admin, Password: 123987", "Default Admin Username/Pass"); }
private void Name3_Tick_3(object sender, EventArgs e) { this.Text = "Running..." + txtIp.Text; Name1.Start(); Name3.Stop(); }