private void AmendButton_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         StaffFunctions.OpenAmendPage(selectedStaffID);
     }
     catch (Exception generalException)
     {
         MessageFunctions.Error("Error amending record", generalException);
     }
 }