private void PurchaseDetailsBtn_Click(object sender, EventArgs e) { if (purchaseOrderIDTextBox.Text.Length == 0) { MessageBox.Show("Please select an order first."); return; } int purchaseOrderID = Convert.ToInt32(purchaseOrderIDTextBox.Text); purchaseOrderDetailsForm podf = new purchaseOrderDetailsForm(purchaseOrderID); DialogResult result = podf.ShowDialog(); }
private void Button7_Click_1(object sender, EventArgs e) { purchaseOrderDetailsForm cf = new purchaseOrderDetailsForm(1); cf.ShowDialog(); }