public ShippingScreenPresenter(IShippingScreen view, IShippingService service, Shipment shipment)
        {
            _view = view;
            _service = service;
            _shipment = shipment;

            // Since we're got the INotifyPropertyChanged interface on Shipment,
            // we might as well use it to trigger updates to the Cost
            _shipment.PropertyChanged += new PropertyChangedEventHandler(_shipment_PropertyChanged);
        }
예제 #2
0
        public ShippingScreenPresenter(IShippingScreen view, IShippingService service, Shipment shipment)
        {
            _view     = view;
            _service  = service;
            _shipment = shipment;

            // Since we're got the INotifyPropertyChanged interface on Shipment,
            // we might as well use it to trigger updates to the Cost
            _shipment.PropertyChanged += new PropertyChangedEventHandler(_shipment_PropertyChanged);
        }