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(); }
public override void Initialized() { base.Initialized(); if (_projects_controller == null) { return; } Projects = new ProjectListViewModelCollection(); Manufacturers = new ManufacturersViewModelCollection(); Clients = new ClientViewModelCollection(); }