private void Save_Button_Click(object sender, EventArgs e) { InvoiceNode m_Node = new InvoiceNode(); m_Node.Amount = 1; m_Node.BasePrice = this.Price_Num.Value; m_Node.FinalPrice = this.Price_Num.Value; m_Node.Tax = 18; m_Node.UseCustomPrice = true; m_Node.ItemID = this.NextID; m_Node.Description = this.Description_Box.Text; InvoiceNodeCreated?.Invoke(m_Node); this.Close(); }
private void Sale_Button_Click(object sender, EventArgs e) { if (this.Item != null) { InvoiceNode m_Node = new InvoiceNode(this.Item); m_Node.Amount = this.Amount_Num.Value; m_Node.BasePrice = this.PerPrice_Num.Value; m_Node.FinalPrice = this.TotalPrice_Num.Value; if (this.UseCustumPricing_Check.Checked) { m_Node.UseCustomPrice = true; } InvoiceNodeCreated?.Invoke(m_Node); } this.Close(); }