Example #1
0
        private void btnBuy_Click(object sender, System.EventArgs e)
        {
            if (lbProducts.SelectedIndex != -1 && numCount.Value > 0)
            {
                BuyProduct f1 = new BuyProduct(this);

                ShoppingCart.Product      = (lbProducts.SelectedItem as Product);
                ShoppingCart.ProductCount = numCount.Value;

                f1.Show();
                this.Hide();
            }
            else
            {
                MessageBox.Show("Ürün seçiniz!");
            }
        }
Example #2
0
        public PurchaseDetail(BuyProduct f1)
        {
            lastform = f1;

            InitializeComponent();
        }