private void FillData(ComboBox comboBox, object value)
 {
     ListData.LoadData(comboBox, new DbParameter()
     {
         Name = "@ListTypeId", Value = value
     });
 }
 private void LoadData()
 {
     FillData(CityComboBox, ListTypes.City);
     FillData(DistrictComboBox, ListTypes.District);
     FillData(GenderComboBox, ListTypes.Gender);
     FillData(JobTitleComboBox, ListTypes.JobTitle);
     FillData(HasLeftComboBox, ListTypes.HasLeft);
     FillData(LeftReasonComboBox, ListTypes.LeftReason);
     ListData.LoadData(BranchComboBox, "Branches_GetAllBranchesName");
 }
 private void LoadData()
 {
     ListData.LoadData(CityComboBox, new DbParameter()
     {
         Name = "@ListTypeId", Value = ListTypes.City
     });
     ListData.LoadData(DistrictComboBox, new DbParameter()
     {
         Name = "@ListTypeId", Value = ListTypes.District
     });
 }
 private void LoadData()
 {
     ListData.LoadData(EmployeesDataGridView, "Employees_GetAllEmployees");
 }
Esempio n. 5
0
 private void LoadData()
 {
     ListData.LoadData(BranchesDataGridView, "Branches_GetAllBranches");
 }