private void FRM_City_Load(object sender, EventArgs e) { try { CountryManager.FillCountryComboBox(cmbCountry); CityGrid.DataSource = city.CreateTable(); } catch (Exception ex) { MessageBox.Show(ex.Message); } }
private void FRM_Site_Load(object sender, EventArgs e) { try { #region Fill All ComboBox By Data : CountryManager.FillCountryComboBox(cmbCountry); cmbCountry_SelectionChangeCommitted(null, null); #endregion #region Fill Grid By Data : SiteGrid.DataSource = site.CreateTable(); #endregion } catch (Exception ex) { MessageBox.Show(ex.Message); } }
private void FRM_Employee_Load(object sender, EventArgs e) { try { #region Fill All ComboBox By Data : CountryManager.FillCountryComboBox(cmbCountry); JobManager.FillJobComboBox(cmbJob); MaritalStatusManager.FillMaritalStatusCodeComboBox(cmbMaritalStatus); cmbCountry_SelectionChangeCommitted(null, null); #endregion #region Fill Grid By Data : EmployeeGrid.DataSource = emp.CreateTable(); #endregion } catch (Exception ex) { MessageBox.Show(ex.Message); } }