protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            base.OnNavigatedTo(e);
            EditPromotionPassThroughElement param = (EditPromotionPassThroughElement)e.Parameter;

            ViewModel.SetPromotion(CompanyManager.FindPromotion(param.CompanyId, param.PromotionId, param.Identifier));
            this.DataContext = ViewModel;
        }
Exemple #2
0
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            base.OnNavigatedTo(e);
            var passThrough = (EditPromotionPassThroughElement)e.Parameter;

            ViewModel.Promotion  = CompanyManager.FindPromotion(passThrough.CompanyId, passThrough.PromotionId, passThrough.Identifier);
            ViewModel.CompanyId  = passThrough.CompanyId;
            ViewModel.Identifier = passThrough.Identifier;
            this.DataContext     = ViewModel;
        }