Exemplo n.º 1
0
 private void comboBoxCreationServerName_DropDown(object sender, System.EventArgs e)
 {
     if (cboCreationServerName.Items.Count == 0)
     {
         cboCreationServerName.DataSource = SqlServers.GetServers();
     }
 }
Exemplo 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;
     }
 }
Exemplo 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;
     }
 }
Exemplo n.º 4
0
 private void buttonCreationRefresh_Click(object sender, System.EventArgs e)
 {
     cboCreationServerName.DataSource = SqlServers.GetServers();
 }