private void button_removeStudent_Click(object sender, EventArgs e) { RemoveStudent DS = new RemoveStudent(); DS.refToMenu = this; DS.Show(); this.Hide(); }
private void removeButtonClick(object sender, RoutedEventArgs e) { var AddItem = new List <FamilyInfoResult>(); foreach (FamilyInfoResult item in FindGrid.ItemsSource) { if (((CheckBox)RemoveStudent.GetCellContent(item)).IsChecked == true) { var del = context.DeleteMember(item.AdmissionNumber); } } this.ShowMessageAsync("Successful", "Member Deleted!"); }