private void editGameToolStripMenuItem_Click(object sender, EventArgs e) { var editGame = new AddContent(_context.Games.Find(((Games)gamesBindingSource.Current).ID_Game), 0); editGame.ShowDialog(); UpdateView(); }
private void AddContent_Click(object sender, EventArgs e) { var addC = new AddContent(((Games)gamesBindingSource.Current), 1); if (addC.ShowDialog() != DialogResult.OK) { return; } Changefilter(); UpdateView(); }
private void addGameToolStripMenuItem_Click(object sender, EventArgs e) { var addC = new AddContent(_game, 0); if (addC.ShowDialog() != DialogResult.OK) { return; } Changefilter(); UpdateView(); }
private void button1_Click(object sender, EventArgs e) { var gg = Program.context.Games.Find((decimal)nameComboBox.SelectedValue); g.OriginalGame = gg; g.ID_Content = gg.ID_Game; g.TypeContent = true; var addCon = new AddContent(g, 0); DialogResult = addCon.ShowDialog(); }