Пример #1
0
        private void OrderNow_Click(object sender, EventArgs e)
        {
            ClassicPizza obj = new ClassicPizza();

            this.Hide();
            obj.ShowDialog();
        }
Пример #2
0
        private void ConfirmButton_Click(object sender, EventArgs e)
        {
            Deal obj = new Deal();

            for (int i = 0; i < countdeal; i++)
            {
                obj.Quantity = 1;
                obj.Name_    = dealarr[i].name;
                obj.Price    = dealarr[i].price;
            }
            piz.Deals.InsertOnSubmit(obj);
            piz.SubmitChanges();
            ClassicPizza show1 = new ClassicPizza();

            this.Hide();
            show1.ShowDialog();
        }