private void BtnPupilAbsenceCancel_Click(object sender, RoutedEventArgs e) { // Reset the form and return to the main pupil search view TbxPupilFullName.Clear(); TbxAbsenceClassID.Clear(); TbxUpdatePAID.Clear(); TbxDeleteAbsenceReason.Clear(); TbxAbsenceDate.Clear(); TbxUpdateAbsenceID.Clear(); Stk_SearchPupil.Visibility = Visibility.Visible; Stk_UpdatePupilAbsenceForm.Visibility = Visibility.Hidden; }
private void BtnPupilAbsenceReturn_Click(object sender, RoutedEventArgs e) { // Reset the form and return to the main pupil search view TbxPupilFullName.Clear(); TbxAbsenceClassID.Clear(); TbxUpdatePAID.Clear(); TbxDeleteAbsenceReason.Clear(); TbxAbsenceDate.Clear(); TbxUpdateAbsenceID.Clear(); Stk_UpdatePupilAbsenceForm.Visibility = Visibility.Hidden; BtnPupilAbsenceReturn.Visibility = Visibility.Collapsed; BtnPupilAbsence.Visibility = Visibility.Visible; BtnPupilAbsenceCancel.Visibility = Visibility.Visible; Lbl_PupilAbsenceSuccessLabel.Visibility = Visibility.Hidden; RefreshPupilAbsences(); Stk_SearchPupil.Visibility = Visibility.Visible; }