Пример #1
0
        private void MainForm_Load(object sender, EventArgs e)
        {
            DbSeeder.SeedTelBook(context);

            comboBoxCount.Items.AddRange(new ComboBoxView[]
            {
                new ComboBoxView {
                    Id = 1, ViewStr = "10"
                },
                new ComboBoxView {
                    Id = 2, ViewStr = "20"
                },
                new ComboBoxView {
                    Id = 3, ViewStr = "30"
                },
                new ComboBoxView {
                    Id = 4, ViewStr = "50"
                }
            });
            comboBoxCount.SelectedIndex = 0;
            SearchPerson();
        }