Ejemplo n.º 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!");
            }
        }
Ejemplo n.º 2
0
 private void PurchaseDetail_FormClosing(object sender, FormClosingEventArgs e)
 {
     lastform.Show();
 }