GetServers() static private method

static private GetServers ( ) : string[]
return string[]
Esempio n. 1
0
 private void comboBoxCreationServerName_DropDown(object sender, System.EventArgs e)
 {
     if (cboCreationServerName.Items.Count == 0)
     {
         cboCreationServerName.DataSource = SqlServers.GetServers();
     }
 }
Esempio n. 2
0
 private void buttonCreationRefresh_Click(object sender, System.EventArgs e)
 {
     this.Cursor = Cursors.WaitCursor;
     try
     {
         if (cboConnectionServerName.Items.Count == 0)
         {
             cboCreationServerName.DataSource = SqlServers.GetServers();
         }
     }
     catch (Exception ex)
     {
         throw;
     }
     finally
     {
         this.Cursor = Cursors.Default;
     }
 }
Esempio n. 3
0
 private void ServerName_DropDown(object sender, System.EventArgs e)
 {
     this.Cursor = Cursors.WaitCursor;
     try
     {
         if (cboConnectionServerName.Items.Count == 0)
         {
             ((ComboBox)sender).DataSource = SqlServers.GetServers();
         }
     }
     catch (Exception ex)
     {
         throw;
     }
     finally
     {
         this.Cursor = Cursors.Default;
     }
 }