Exemplo n.º 1
0
		/// <summary>
		/// Adds the item.
		/// </summary>
		/// <param name="billingItem">The billing item.</param>
		/// <param name="quantity">The quantity.</param>
		public void AddItem(BillingItem billingItem, int quantity)
		{
			DataRow dr = this._tblItems.NewRow();
			dr["Item"] = billingItem.Item;
			dr["ItemNo"] = billingItem.ItemNo;
			dr["Quantity"] = quantity;
			dr["Price"] = billingItem.Price;
			dr["PriceTotal"] = billingItem.Price * (double)quantity;
			this._tblItems.Rows.Add(dr);
		}
Exemplo n.º 2
0
		/// <summary>
		/// Recieve OnAddItem event.
		/// </summary>
		/// <param name="billingItem">The billing item.</param>
		/// <param name="quantity">The quantity.</param>
		private void biForm_OnAddItem(BillingItem billingItem, int quantity)
		{
			this._controller.AddItem(billingItem, quantity);
			this.btnCreateBill.Enabled = true;
		}