//private readonly IDictionary<int, IUcViewModel> _dicTabItems;

        public DailyOrderStatusVm(IBackPreviousVm backPreviousVm, ISearchDailyOrderVm searchDaily, IOrdersListVm ordersListTrack, IOrderDetailVm orderDetail)
        {
            BackPrevious    = backPreviousVm;
            SearchDaily     = searchDaily;
            OrdersListTrack = ordersListTrack;
            OrderDetail     = orderDetail;

            //_dicTabItems = new Dictionary<int, IUcViewModel>
            //{
            //    {SharedConstants.Client.ORDER_TAB_PHONE, _searchTrack},
            //};
            //LstChildren.AddRange(_dicTabItems.Values);

            LstChildren.Add(_searchDaily);
            LstChildren.Add(_backPrevious);
            LstChildren.Add(_ordersListTrack);
            LstChildren.Add(_orderDetail);

            InitializeServices(searchDaily, ordersListTrack, orderDetail);
        }
 private void InitializeServices(ISearchDailyOrderVm searchDaily, IOrdersListVm ordersListTrack, IOrderDetailVm orderDetail)
 {
     searchDaily.DailySearch += ordersListTrack.OnDailySearchCommand;
     //searchDaily.ClientNameChanged += ordersListTrack.OnClientNameChanged;
     ordersListTrack.StatusChanged += OnStatusChanged;
     ordersListTrack.ShowDetail    += orderDetail.OnShowDetail;
     orderDetail.StatusChanged     += OnStatusChanged;
 }
Exemplo n.º 3
0
 private void InitializeServices(ISearchTrackOrderVm searchTrack, IOrdersListVm ordersListTrack, IOrderDetailVm orderDetail)
 {
     searchTrack.PhoneChanged      += ordersListTrack.OnPhoneChanged;
     searchTrack.ClientNameChanged += ordersListTrack.OnClientNameChanged;
     ordersListTrack.StatusChanged += OnStatusChanged;
     ordersListTrack.ShowDetail    += orderDetail.OnShowDetail;
     orderDetail.StatusChanged     += OnStatusChanged;
 }