/// <summary> /// This function deletes a trainee when we press on the button "Delete Trainee" /// This is a sighnup function for a click event /// </summary> /// <param name="sender">Who is sensing the event</param> /// <param name="e">Details of the event occurred</param> private void TraineeDeleteButton_Click(object sender, RoutedEventArgs e) { DeleteTrainee deleteTraineeWind = new DeleteTrainee(); deleteTraineeWind.ShowDialog(); }
private void button1_Click(object sender, RoutedEventArgs e) { var window = new DeleteTrainee(); window.ShowDialog(); }