示例#1
0
        ///////////////////////////
        ///////// Methods /////////
        ///////////////////////////

        private void ClearFields()
        {
            cmbLevel.DataSource    = EducationLevel.GetDSL();
            cmbLevel.DisplayMember = "pText";
            cmbLevel.ValueMember   = "pValue";

            chkComplete.Checked    = false;
            txtCourse.Text         = "";
            txtInclusiveDates.Text = "";
            txtRecognition.Text    = "";
            txtSchoolName.Text     = "";
            txtSchoolAddress.Text  = "";

            cmbLevel.Focus();
        }
示例#2
0
        ///////////////////////////
        ///////// Methods /////////
        ///////////////////////////

        private void LoadDetails()
        {
            cmbLevel.DataSource    = EducationLevel.GetDSL();
            cmbLevel.DisplayMember = "pText";
            cmbLevel.ValueMember   = "pValue";

            using (clsEmployeeEducation ed = new clsEmployeeEducation(_strEducationCode))
            {
                ed.Fill();
                cmbLevel.SelectedValue = ed.EducationLevelCode;
                txtCourse.Text         = ed.Course;
                txtInclusiveDates.Text = ed.InclusiveDates;
                txtRecognition.Text    = ed.Recognition;
                txtSchoolName.Text     = ed.SchoolName;
                txtSchoolAddress.Text  = ed.SchoolAddress;
                chkComplete.Checked    = (ed.Complete == "1" ? true : false);
            }

            cmbLevel.Focus();
        }