Beispiel #1
0
 private void cboServer_DropDown(object sender, EventArgs e)
 {
     try
     {
         if (!isServerFilled)
         {
             this.Cursor = Cursors.WaitCursor;
             SqlServerList.Get().ForEach(item => cboServer.Items.Add(item));
             isServerFilled = true;
         }
     }
     catch (Exception)
     {
         throw;
     }
     finally
     {
         Cursor = Cursors.Default;
     }
 }
Beispiel #2
0
 private void cboServer_DropDown(object sender, EventArgs e)
 {
     try
     {
         if (!isServerFilled)
         {
             this.Cursor = Cursors.WaitCursor;
             SqlServerList.Get().ForEach(item => cboServer.Items.Add(item));
             isServerFilled = true;
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(this, ex.Message, "ERROR", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
     finally
     {
         Cursor = Cursors.Default;
     }
 }