Пример #1
0
        private void navigationHelper_LoadState(object sender, LoadStateEventArgs e)
        {
            if (e.NavigationParameter is RSOrder)
                order = e.NavigationParameter as RSOrder;

            if (order != null)
            {
                grdOrderItems.ItemsSource = order.Items.Where(oi => oi.State < 2);
            }
        }
Пример #2
0
        private async void navigationHelper_LoadState(object sender, LoadStateEventArgs e)
        {
            if (e.NavigationParameter is int)
                order = await Service.GetOrder((int)e.NavigationParameter);

            if (e.NavigationParameter is RSOrder)
                order = await Service.GetOrder((e.NavigationParameter as RSOrder).Id);

            lstOrderItems.ItemsSource = order.Items.Where(oi => oi.State < 2);
            this.DataContext = order;
        }
Пример #3
0
 private void navigationHelper_LoadState(object sender, LoadStateEventArgs e)
 {
 }
Пример #4
0
 private void navigationHelper_LoadState(object sender, LoadStateEventArgs e)
 {
     SettingsPane.GetForCurrentView().CommandsRequested += Orders_CommandsRequested;
 }