Exemple #1
0
 private void Okbutton1_Click(object sender, EventArgs e)
 {
     /*若点击Customer按钮,则进入购物界面*/
     if (CustomerRadioButton.Checked == true)
     {
         ShoppingForm shopping = new ShoppingForm(productList);
         shopping.Show();
     }
     /*若点击Shopkeeper按钮,则进入管理商品界面*/
     if (ShopKeeperRadioButton.Checked == true)
     {
         ProductForm product = new ProductForm(productList);
         product.Show();
     }
 }
        private void Okbutton1_Click(object sender, EventArgs e)
        {
            /*若点击Customer按钮,则进入购物界面*/
            if(CustomerRadioButton.Checked == true)
            {
                ShoppingForm shopping = new ShoppingForm(productList);
                 shopping.Show();

            }
            /*若点击Shopkeeper按钮,则进入管理商品界面*/
            if (ShopKeeperRadioButton.Checked == true)
            {
                ProductForm product = new ProductForm(productList);
                 product.Show();
            }
        }