private void NewUserButton_Click(object sender, RoutedEventArgs e) { Window addNewTrainee = new AddTraineeWindow(); addNewTrainee.Show(); this.Hide(); }
private void btnUpdate_Click(object sender, RoutedEventArgs e) { if (findGrid.SelectedItem == null) { MessageBox.Show("יש לבחור תלמיד לעידכון"); return; } Window addTrainee = new AddTraineeWindow((Trainee)findGrid.SelectedItem); addTrainee.Show(); }
private void AddTrainee_Click(object sender, RoutedEventArgs e) { if (testersListView.SelectedItem == null) { MessageBox.Show("Please select a trainee to update from the list"); return; } Tester tester = testersListView.SelectedItem as Tester; AddTraineeWindow addTraineeWindow = new AddTraineeWindow(); IsEnabled = false; addTraineeWindow.Show(); addTraineeWindow.Closed += ChildWindowClosed; }
private void btnAddTrainee_Click(object sender, RoutedEventArgs e) { Window window = new AddTraineeWindow(); window.Show(); }
private void ButtonAdd_Click(object sender, RoutedEventArgs e) { Window addTrainee = new AddTraineeWindow(); addTrainee.ShowDialog(); }
private void Button_SignupTrainee(object sender, RoutedEventArgs e) { AddTraineeWindow addTraineeWindow = new AddTraineeWindow(); addTraineeWindow.Show(); }