Exemple #1
0
        private void DataSeeding()
        {
            comboBox1.Items.Add("Any");
            comboBox1.Items.Add("Available");
            comboBox1.Items.Add("Not available");

            comboBox2.Items.Add("Any");
            comboBox3.Items.Add("Any");
            comboBox4.Items.Add("Any");

            _journalServices
            .GetAll()
            .ToList()
            .ForEach(e =>
            {
                comboBox2.Items.Add(e.Specialization);
                comboBox3.Items.Add(e.Department);
                comboBox4.Items.Add(e.LastPost);
            });

            comboBox1.SelectedIndex = 0;
            comboBox2.SelectedIndex = 0;
            comboBox3.SelectedIndex = 0;
            comboBox4.SelectedIndex = 0;
        }
Exemple #2
0
        public JournalForm()
        {
            InitializeComponent();

            _journalServices = new JournalServices();

            SeedTable(_journalServices.GetAll());

            DataSeeding();
        }