private void Button_Click_Delete(object sender, RoutedEventArgs e) { Game g = new Game(); NGame n = new NGame(); g.Id = int.Parse(txtId.Text); n.Delete(g); grid.ItemsSource = n.Select(); }
private void Button_Click_4(object sender, RoutedEventArgs e) { Game m = new Game(); m.SetID(int.Parse(id.Text)); NGame n = new NGame(); n.Delete(m); Button_Click_1(sender, e); }
private void DeleteClick(object sender, RoutedEventArgs e) { MGame m = new MGame(); m.Id = int.Parse(txtId.Text); NGame n = new NGame(); n.Delete(m); SelectClick(sender, e); }