public AddContextMenuItemFactory(
     IEventBus eventBus,
     IAddSceneDialogViewModelFactory addSceneDialogViewModelFactory)
 {
     _eventBus = eventBus;
     _addSceneDialogViewModelFactory = addSceneDialogViewModelFactory;
 }
예제 #2
0
        public AddContextMenuItem(
            IEventBus eventBus,
            IProject?project,
            IProjectFolder?folder,
            IAddSceneDialogViewModelFactory addSceneDialogViewModelFactory) : base("Add")
        {
            _eventBus = eventBus;
            _project  = project;
            _folder   = folder;
            _addSceneDialogViewModelFactory = addSceneDialogViewModelFactory;

            Items.Add(new ContextMenuItem("New Folder", RelayCommand.Create(NewFolder)));
            Items.Add(new ContextMenuItem("Scene", RelayCommand.Create(Scene)));
        }