Exemplo n.º 1
0
        public OrdersController(IRegionManager regionManager, ApartmentService apartmentService)
        {
            _apartmentService = apartmentService;
            _regionManager = regionManager;

            OrderModels = new List<OrderCompositeViewModel>();

            apartmentService.ApartemntLocked.CollectionChanged += new NotifyCollectionChangedEventHandler(ApartemntLocked_CollectionChanged);
        }
        public OrderCompositeViewModel(ApartmentService apartmentService)
        {
            _apartmentService = apartmentService;

            this.SellCommand = new DelegateCommand<object>(this.Sell);
            this.ModifyCommand = new DelegateCommand<object>(this.Modify);
            this.DeleteCommand = new DelegateCommand<object>(this.Delete);
            this.UnlockCommand = new DelegateCommand<object>(this.Unlock);
        }