public CreateBillingOfficeButtonView( CreateBillingOfficeButtonViewModel createBillingOfficeButtonViewModel )
            : this()
        {
            DataContext = createBillingOfficeButtonViewModel;

            var regionContext = RegionContext.GetObservableContext ( this );
            regionContext.PropertyChanged += ( s, e ) => { createBillingOfficeButtonViewModel.AgencyKey = ( long )regionContext.Value; };
        }
Esempio n. 2
0
        public CreateBillingOfficeButtonView(CreateBillingOfficeButtonViewModel createBillingOfficeButtonViewModel)
            : this()
        {
            DataContext = createBillingOfficeButtonViewModel;

            var regionContext = RegionContext.GetObservableContext(this);

            regionContext.PropertyChanged += (s, e) => { createBillingOfficeButtonViewModel.AgencyKey = ( long )regionContext.Value; };
        }