Example #1
0
 private void apply_Click(object sender, RoutedEventArgs e)
 {
     if (flag == false)
     {
         validMessage.Visibility = Visibility.Visible;
     }
     else
     {
         DepartmentController.ChangeDepartment(selectedDepartment, newDepartmentName.Text);
         Close();
     }
 }