Exemplo n.º 1
0
        private async void OpenCustomerDetailsMessageReceived(DisplayCustomerDetailsMessage displayCustomerDetailsMessage)
        {
            var detailViewModel = _customerDetailViewModelFactory.Build();

            Tabs.Add(detailViewModel);
            SelectedTab = detailViewModel;
            await detailViewModel.Boot(displayCustomerDetailsMessage.CustomerId);
        }
Exemplo n.º 2
0
        public async Task Boot()
        {
            var customerListViewModel = _customerListViewModelFactory.Build();

            Tabs.Add(customerListViewModel);
            await customerListViewModel.Boot();

            var orderListViewModel = _orderListViewModelFactory.Build();

            Tabs.Add(orderListViewModel);
            await orderListViewModel.Boot();
        }