Beispiel #1
0
 /// <summary>
 /// 8. Loads the grid view with combo box employee selector
 /// </summary>
 private void cmbEmployees_SelectedIndexChanged(object sender, EventArgs e)
 {
     try
     {
         clsInfo Controller = new clsInfo();
         stringcmboxemployee = cmbEmployees.Text;
         stringdbaseemployee = Controller.ReaderEmployee(stringcmboxemployee);
         gvClient.DataSource = Controller.selectqclientByemployeeNumber(stringdbaseemployee);
         CleanTextboxes();
         btnRefresh.Text = "Refresh >>>";
     }
     catch (Exception ex)
     {
         MessageBox.Show("Error  : " + " " + ex.Message);
     }
 }