コード例 #1
0
        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();
        }
コード例 #2
0
        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);
        }
コード例 #3
0
        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);
        }