Пример #1
0
 public void LoadForm(String EmpRole, String DivisionType)
 {
     objSectionDL  = new Section_DL(ConnectionStringClass.GetConnection());
     objEmployeeDL = new Employee_DL(ConnectionStringClass.GetConnection());
     // cmbSection.DataSource = objSectionDL.Get);
     cmbSection.DataSource = objSectionDL.GetData(DivisionType);
     EmployeeRole          = EmpRole;
 }
Пример #2
0
        private void Load_Sections()
        {
            try
            {
                dtSections = objSection_DL.GetData("Production");

                objSourceSections.DataSource = dtSections;
                cmbSection.DataSource        = objSourceSections;
            }
            catch (Exception)
            {
                MessageBox.Show(this, "Error occured while loading Labour Details", "Error", MessageBoxButtons.OK, MessageBoxIcon.Warning);
            }
        }