Пример #1
0
 public AckrooTenderVM(IAckrooBusinessLogic ackrooBusinessLogic,
                       ICacheBusinessLogic cacheBussinessLogic,
                       ICheckoutBusinessLogic checkoutBusinessLogic
                       )
 {
     _cacheBussinessLogic   = cacheBussinessLogic;
     _ackrooBusinessLogic   = ackrooBusinessLogic;
     _checkoutBusinessLogic = checkoutBusinessLogic;
     MessengerInstance.Register <AckrooTenderMessage>(this, DeleySecondes);
     MessengerInstance.Register <AckrooAccoutBalanceMessage>(this, AccountBalance);
     MessengerInstance.Register <AckrooOutStandingAmtChangeMessage>(this, UpdateOutStanding);
     InitialCommands();
 }
Пример #2
0
        public AckrooVM(ICacheBusinessLogic cacheBussinessLogic,
                        IReportsBussinessLogic reportsBusinessLogic,
                        IAckrooBusinessLogic ackrooBusinessLogic,
                        ISaleBussinessLogic saleBussinessLogic

                        )
        {
            _cacheBussinessLogic  = cacheBussinessLogic;
            _reportsBusinessLogic = reportsBusinessLogic;
            _ackrooBusinessLogic  = ackrooBusinessLogic;
            _saleBussinessLogic   = saleBussinessLogic;

            MessengerInstance.Register <AkrooMessage>(this, GetM);
            InitialCommands();
            EnablePrint     = false;
            _CurrentType    = AckReqType.BALANCE;
            BalanceInfo     = null;
            _resourceloader = ResourceLoader.GetForCurrentView();
        }