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); } }
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); } }