public FormReport(ShoppingSale entersale) { InitializeComponent(); shoppingsale = entersale; MessageBox.Show(shoppingsale.Total.ToString()); }
public static Sale ConvertToSale(this ShoppingSale shoppingcar) { Sale sale = new Sale(); sale.Date = DateTime.Now; sale.Total = shoppingcar.Total; sale.Details = shoppingcar.ListSale; return(sale); }
public FormSale() { InitializeComponent(); presenterAddSale = new PresenterAddSale(new MYSQLSaleRepository(), this); presenterLoadProducts = new PresenterLoadProduct(new MYSQLProductRepository(), this); presenterLoadProducts.LoadProductPresenter(); carItemSale = new CarItemSale(); shoppingSale = new ShoppingSale(); }
public FormCalculation(ShoppingSale ptotal) { InitializeComponent(); shopping = ptotal; txtTotal.Text = decimal.Round(shopping.Total, 2).ToString(); }