private void LineItemsBtn_Click(object sender, EventArgs e) { if (invoiceIDTextBox.Text.Length == 0) { MessageBox.Show("Please select an invoice first."); return; } int invoiceID = Convert.ToInt32(invoiceIDTextBox.Text); lineItemsForm lineForm = new lineItemsForm(invoiceID); DialogResult result = lineForm.ShowDialog(); }
private void Button3_Click_1(object sender, EventArgs e) { lineItemsForm cf = new lineItemsForm(1); cf.ShowDialog(); }