private void FormHomePage_Load(object sender, EventArgs e)
 {
     labelUserInformation.Text = "User Name : " + Form1.userName;
     foreach (BinarySearchTree itemTree in virtualMarketOperations.CategoryList())
     {
         Product itemProduct = new Product();
         itemProduct = (Product)itemTree.SearchRoot().data;
         comboBox1.Items.Add(itemProduct.ProductType);
     }
 }
示例#2
0
 private void FormPersonnelPage_Load(object sender, EventArgs e)
 {
     for (int i = 0; i < 2; i++)
     {
         if (i == 0)
         {
             foreach (BinarySearchTree itemTree in virtualMarketOperations.CategoryList())
             {
                 Product itemProduct = new Product();
                 itemProduct = (Product)itemTree.SearchRoot().data;
                 comboBoxNewCategory.Items.Add(itemProduct.ProductType);
             }
         }
         else
         {
             foreach (BinarySearchTree itemTree in virtualMarketOperations.CategoryList())
             {
                 Product itemProduct = new Product();
                 itemProduct = (Product)itemTree.SearchRoot().data;
                 comboBoxQuantityCategory.Items.Add(itemProduct.ProductType);
             }
         }
     }
 }