コード例 #1
0
        private void editGameToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var editGame = new AddContent(_context.Games.Find(((Games)gamesBindingSource.Current).ID_Game), 0);

            editGame.ShowDialog();
            UpdateView();
        }
コード例 #2
0
        private void AddContent_Click(object sender, EventArgs e)
        {
            var addC = new AddContent(((Games)gamesBindingSource.Current), 1);

            if (addC.ShowDialog() != DialogResult.OK)
            {
                return;
            }
            Changefilter();
            UpdateView();
        }
コード例 #3
0
        private void addGameToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var addC = new AddContent(_game, 0);

            if (addC.ShowDialog() != DialogResult.OK)
            {
                return;
            }
            Changefilter();
            UpdateView();
        }
コード例 #4
0
        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();
        }