/// <summary> /// Initializes an instance of salesquote form,open in modal window. /// </summary> private void salesQuoteToolStripMenuItem_Click(object sender, EventArgs e) { try { Form myForm = new SalesQuoteForm(); } catch (Exception) { DialogResult result = MessageBox.Show("Unable to load vehicle data.", "Data Load Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
private void mnuFileOpenSalesQuote_Click(object sender, EventArgs e) { SalesQuoteForm sales = new SalesQuoteForm(); sales.ShowDialog(); }
/// <summary> /// Method called when File, Open, Sales Quote is clicked from menu. Shows the SalesQuote form. /// </summary> private void MnuFileOpenSalesQuote_clicked(object publisher, EventArgs e) { SalesQuoteForm salesQuoteForm1 = new SalesQuoteForm(); salesQuoteForm1.ShowDialog(); }