Example #1
0
        private void order_checkout_Click(object sender, EventArgs e)
        {
            using (Unfocus p = new Unfocus(this))
            {
                //p.Location = new Point(48, 15);
                //p.Location = new Point(0, 0);
                p.Size          = this.ClientRectangle.Size;
                p.StartPosition = FormStartPosition.CenterScreen;
                p.BringToFront();

                Main_payment chkout = new Main_payment(this, total_price);
                chkout.checkoutform = this;
                chkout.ShowDialog(this);
            }
        }
Example #2
0
        private void customer_new_Click(object sender, EventArgs e)
        {
            using (Unfocus p = new Unfocus(this))
            {
                //p.Location = new Point(48, 15);
                //p.Location = new Point(0, 0);
                p.Size          = this.ClientRectangle.Size;
                p.StartPosition = FormStartPosition.CenterScreen;
                p.BringToFront();

                Main_customer addcust = new Main_customer(this);
                addcust.main = this;
                addcust.ShowDialog(this);
            }
        }