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