private void AlterBooksForm_Load(object sender, EventArgs e)
        {
            lblEmployeeName.Text = "Welcome " + employee.FullName;
            List <string> book = DBConnection.cmboBook();

            listDisplay.HorizontalScrollbar = true;
            cmboBook.Items.AddRange(book.ToArray());
            cmboCategory.Items.AddRange(DBConnection.getCategorie().ToArray());
            cmboCategory.SelectedIndex = 0;
            book = null;
        }
Exemplo n.º 2
0
 private void tabControl1_Click(object sender, EventArgs e)
 {
     cmboCategory.Items.AddRange(DBConnection.getCategorie().ToArray());
     cmboCategory.SelectedIndex = 0;
 }