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

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

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