private void NewTransaction(object sender, EventArgs e) { currentReciept = new Transactions.Reciept(); currentReciept.datetime = DateTime.Now; WriteReciept(); //rewrites the current reciept button3.Enabled = true; groupBox4.Enabled = true; }
public void View(double invoiceNumber) { //sets the current reciept to the one of the invoice number currentReciept = transactions.rl.find(invoiceNumber); //rewrites the current reciept WriteReciept(); }