Ejemplo n.º 1
0
        public MainViewModel()
        {
            _context = new Context();

            UpdateCashInHand();

            SoldProductsViewModel = new SoldProductsViewModel(this);
            OnStockProductsViewModel = new OnStockProductsViewModel(this);
            ToRepairProductsViewModel = new ToRepairProductsViewModel(this);
            ToPawnProductsViewModel = new ToPawnProductsViewModel(this);

            SalesmenViewModel = new SalesmenViewModel(this);
            ClientsViewModel = new ClientsViewModel(this);
            RepairersViewModel = new RepairersViewModel(this);
            GuardsViewModel = new GuardsViewModel(this);

            CashTransactionsViewModel = new CashTransactionsViewModel(this);

            MobileOperatorsViewModel = new MobileOperatorsViewModel(this);
            MobileTransactionsViewModel = new MobileTransactionsViewModel(this);

            ReportsViewModel = new ReportsViewModel(_context);

            IsUserAdmin = OperatorManager.Instance.IsUserAdmin;
        }
Ejemplo n.º 2
0
        public MainViewModel()
        {
            _context = new Context();

            UpdateCashInHand();

            SoldProductsViewModel     = new SoldProductsViewModel(this);
            OnStockProductsViewModel  = new OnStockProductsViewModel(this);
            ToRepairProductsViewModel = new ToRepairProductsViewModel(this);
            ToPawnProductsViewModel   = new ToPawnProductsViewModel(this);

            SalesmenViewModel  = new SalesmenViewModel(this);
            ClientsViewModel   = new ClientsViewModel(this);
            RepairersViewModel = new RepairersViewModel(this);
            GuardsViewModel    = new GuardsViewModel(this);

            CashTransactionsViewModel = new CashTransactionsViewModel(this);

            MobileOperatorsViewModel    = new MobileOperatorsViewModel(this);
            MobileTransactionsViewModel = new MobileTransactionsViewModel(this);

            ReportsViewModel = new ReportsViewModel(_context);

            IsUserAdmin = OperatorManager.Instance.IsUserAdmin;
        }