/// <summary> /// Initializes the prices tab /// </summary> /// <param name="path"></param> public PricesTab(string path = null) { this.dao = new PriceDAO(path); Text = "Product Pricings"; RenderItems(); }
/// <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(); }