Пример #1
0
        private void button5_Click(object sender, EventArgs e)
        {
            var manageP = new ManageOPOS(1);

            manageP.ShowDialog();
            PlatformsList.DataSource    = platformsBindingSource;
            PlatformsList.DisplayMember = "Name";
            PlatformsList.ValueMember   = "ID_Platform";
            PlatformsList.DataSource    = _context.Platforms.ToList();
        }
Пример #2
0
        private void button6_Click(object sender, EventArgs e)
        {
            var manageP = new ManageOPOS(0);

            manageP.ShowDialog();
            OnlineProtectionsList.DataSource    = online_protectionsBindingSource;
            OnlineProtectionsList.DisplayMember = "Name";
            OnlineProtectionsList.ValueMember   = "ID_Protect";
            OnlineProtectionsList.DataSource    = _context.Online_protections.ToList();
        }
Пример #3
0
        private void button4_Click(object sender, EventArgs e)
        {
            var manageS = new ManageOPOS(2);

            manageS.ShowDialog();
            var LS = new List <Series> {
                new Series {
                    Name = "<отсутствует>", ID_Ser = 0
                }
            };

            LS.AddRange(_context.Series.OrderBy(s => s.Name).ToArray());
            comboBox8.DataSource = LS;
            if (manageS.online_protectionsBindingSource.Current != null)
            {
                ((Games)gamesBindingSource.Current).ID_Ser = ((Series)manageS.online_protectionsBindingSource.Current).ID_Ser;
            }
            comboBox8.SelectedValue = ((Games)gamesBindingSource.Current).ID_Ser;
            manageS.Dispose();
        }