Exemple #1
0
 private OrderManager(PathModel pathModel = null) : base(pathModel)
 {
     _customerManager    = CustomerManager.CreateAsSingleton(PathHelper.CustomerPathModel);
     _creditManager      = CreditManager.CreateAsSingleton(PathHelper.CreditPathModel);
     _cashManager        = CashManager.CreateAsSingleton(PathHelper.CashPathModel);
     _checkManager       = CheckManager.CreateAsSingleton(PathHelper.CheckPathModel);
     _orderDetailManager = OrderDetailManager.CreateAsSingleton(PathHelper.OrderDetailPathModel);
 }
 public PaymentForm(decimal amount = 0, int orderId = 0)
 {
     _amount  = amount;
     _orderId = orderId;
     InitializeComponent();
     _creditManager = CreditManager.CreateAsSingleton(PathHelper.CreditPathModel);
     _cashManager   = CashManager.CreateAsSingleton(PathHelper.CashPathModel);
     _checkManager  = CheckManager.CreateAsSingleton(PathHelper.CheckPathModel);
 }