Ejemplo n.º 1
0
 private void Connect()
 {
     // Prompt for Name/IP address
     using (var getConnectIP = new GetConnectIPDialog())
     {
         if (getConnectIP.ShowDialog(this) == DialogResult.OK)
         {
             Connect(getConnectIP.Address, getConnectIP.Port);
         }
         else
         {
             this.ParentForm.Close();
         }
     }
 }
 private void Connect()
 {
     // Prompt for Name/IP address
     using (var getConnectIP = new GetConnectIPDialog())
     {
         if (getConnectIP.ShowDialog(this) == DialogResult.OK)
         {
             Connect(getConnectIP.Address, getConnectIP.Port);
         }
         else
         {
             this.ParentForm.Close();
         }
     }
 }