/// <summary> /// Opens new form /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void NewInvoiceBut_Click(object sender, EventArgs e) { //Creates new form and closes the old one this.InvoiceFormL = new InvoiceForm(); this.Hide(); this.InvoiceFormL.ShowDialog(); this.Close(); }
private void PayBut_Click(object sender, EventArgs e) { this.InvoiceForm = new InvoiceForm(this.cartItems); this.InvoiceForm.ShowDialog(); }