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