예제 #1
0
 private void FRM_City_Load(object sender, EventArgs e)
 {
     try
     {
         CountryManager.FillCountryComboBox(cmbCountry);
         CityGrid.DataSource = city.CreateTable();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
예제 #2
0
        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);
            }
        }
예제 #3
0
        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);
            }
        }