예제 #1
0
 private void ServerPort_Leave(object sender, EventArgs e)
 {
     if (!IsPortValid())
     {
         ServerPort.Focus();
     }
 }
예제 #2
0
 // Method:      RunServer_Click()
 // Description: This method brings the Server panel, where user gets to enter the
 //              port, to the front and focuses on ServerPort textbox.
 private void RunServer_Click(object sender, EventArgs e)
 {
     StartServerPanel.BringToFront();
     ServerPort.Focus();
 }