public void addNewOrderToolStripMenuItem_Click(object sender, EventArgs e) { string CustomerId = ""; string CustomerName = ""; OrderRelease WindowOR = new OrderRelease(CustomerId, CustomerName); WindowOR.Show(); }
public void btnOK_Click(object sender, EventArgs e) { string CustomerId = txtCustomerId.Text; string CustomerName = txtCompanyName.Text; OrderRelease WindowOR = new OrderRelease(CustomerId, CustomerName); Form.ActiveForm.Close(); WindowOR.Show(); }
private void btnCancel_Click(object sender, EventArgs e) { Form.ActiveForm.Close(); string CustomerId = txtCustomerId.Text; string CustomerName = txtCompanyName.Text; OrderRelease WindowOR = new OrderRelease(CustomerId, CustomerName); WindowOR.Show(); //Form NewSearchCustomer = new SearchCustomer(); //NewSearchCustomer.Close(); }