示例#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();
        }
示例#2
0
        public override void Initialized()
        {
            base.Initialized();

            if (_projects_controller == null)
            {
                return;
            }

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