Example #1
0
        public MainViewModel(Controllers.ProjectsController projects_controller)
        {
            _projects_controller = projects_controller;

            Status        = new DocumentStatusViewModel();
            Projects      = new ProjectListViewModelCollection();
            Manufacturers = new ManufacturersViewModelCollection();

            Clients        = new ClientViewModelCollection();
            ToolBarButtons = new ToolbarButtonsViewModel();
        }
Example #2
0
        public override void Initialized()
        {
            base.Initialized();

            if (_projects_controller == null)
            {
                return;
            }

            Projects      = new ProjectListViewModelCollection();
            Manufacturers = new ManufacturersViewModelCollection();
            Clients       = new ClientViewModelCollection();
        }