Exemple #1
0
 /// <summary>
 ///     Initializes the prices tab
 /// </summary>
 /// <param name="path"></param>
 public PricesTab(string path = null)
 {
     this.dao = new PriceDAO(path);
     Text     = "Product Pricings";
     RenderItems();
 }
Exemple #2
0
 /// <summary>
 ///     Class constructor
 /// </summary>
 /// <param name="productId">ID of the associated product</param>
 /// <param name="date">Price date</param>
 public Price(long productId = 0, string date = null)
 {
     Product = new Product(productId);
     Date    = date is null ? DateTime.Now : DateTime.Parse(date);
     DAO     = new PriceDAO();
 }