public CanvasSideBarViewModel(IEnumerable <InterstellaDragDropViewModel> dragDropObjects, InterstellaSystem system) { // Populate Drag Drop List DragDropVM = new DragDropListViewModel(dragDropObjects); InfoPannelVM = new InfoPannelViewModel(system); }
/// <summary> /// Construct the side bar view models to reflect a system and with drag drop-enabled objects. /// </summary> public CanvasSideBarViewModel(IEnumerable <InterstellaDragDropViewModel> dragDropObjects) { // Initialise the DragDropList and InfoPannel View Models DragDropVM = new DragDropListViewModel(dragDropObjects); InfoPannelVM = new InfoPannelViewModel(); }