Exemple #1
0
        public ApplicationViewModel()
        {
            DependencyRegistration container = new DependencyRegistration();

            container.Build();

            about = new AboutViewModel();

            home = new HomeViewModel();

            orders = new OrderViewModel();

            products = new ProductViewModel();

            _currentWindowViewModel = products;

            SetAboutVMCommand = new RelayCommand(SetAboutVM);

            SetProductsVMCommand = new RelayCommand(SetProductsVM);

            SetOrdersVMCommand = new RelayCommand(SetOrdersVM);

            ExitCommand = new RelayCommand(Exit);
        }