/// <summary> /// Opens a new FrmSales. /// </summary> /// <param name="sender">Object that triggered the event.</param> /// <param name="e">EventArgs for the event.</param> private void ShowNewForm(object sender, EventArgs e) { FrmSales salesForm = new FrmSales(); salesForm.MdiParent = this; salesForm.Text = "Sales Window " + salesFormNumber++; salesForm.Show(); }
/// <summary> /// Constructor method for class FrmCatalogue. Stores the reference to the FrmSales object that /// instantiated this. Uses that reference to send back data. /// </summary> /// <param name="frm">The sales form that called this method.</param> public FrmCatalogue(FrmSales frm) { InitializeComponent(); business = Business.getBusiness(); frmSales = frm; }