コード例 #1
0
 /// <summary>
 /// this will clear all the educational fields
 /// </summary>
 private void ClearEducation()
 {
     CkbApproved.Checked = true;
     TxtCourseID.Clear();
     TxtGrade.Clear();
     TxtDescription.Clear();
     TxtDateApproved.Clear();
     TxtCredits.Clear();
 }
コード例 #2
0
        /***************************************
        *
        *  This is where the UTILITY METHODS are.
        *
        ***************************************/

        /// <summary>
        /// This clears the form after an entry is added.
        /// </summary>
        private void ClearForm()
        {
            TxtEmpID.Clear();
            TxtFirstName.Clear();
            TxtLastName.Clear();
            TxtMiddleName.Clear();
            TxtXtraProp1.Clear();
            TxtXtraProp2.Clear();
            CkbActiveEmployee.Checked = true;
            CkbBenefits.Checked       = true;
            CkbApproved.Checked       = true;
            LVxCourses.Items.Clear();
            TxtCourseID.Clear();
            TxtGrade.Clear();
            TxtDescription.Clear();
            TxtDateApproved.Clear();
            TxtCredits.Clear();
            TxtMaritalStatus.Clear();
            TxtDepartment.Clear();
            TxtTitle.Clear();
            TxtStartDate.Clear();
        }