示例#1
0
        public FormReport(ShoppingSale entersale)
        {
            InitializeComponent();
            shoppingsale = entersale;

            MessageBox.Show(shoppingsale.Total.ToString());
        }
示例#2
0
        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);
        }
示例#3
0
 public FormSale()
 {
     InitializeComponent();
     presenterAddSale      = new PresenterAddSale(new MYSQLSaleRepository(), this);
     presenterLoadProducts = new PresenterLoadProduct(new MYSQLProductRepository(), this);
     presenterLoadProducts.LoadProductPresenter();
     carItemSale  = new CarItemSale();
     shoppingSale = new ShoppingSale();
 }
示例#4
0
 public FormCalculation(ShoppingSale ptotal)
 {
     InitializeComponent();
     shopping      = ptotal;
     txtTotal.Text = decimal.Round(shopping.Total, 2).ToString();
 }