Esempio n. 1
0
        public ProfileTreeViewModel(IProfileEditorService profileEditorService, IProfileTreeVmFactory profileTreeVmFactory)
        {
            _profileEditorService = profileEditorService;
            _profileTreeVmFactory = profileTreeVmFactory;

            CreateRootFolderViewModel();
        }
Esempio n. 2
0
 public LayerViewModel(ProfileElement layer,
                       IRgbService rgbService,
                       IProfileEditorService profileEditorService,
                       IDialogService dialogService,
                       IProfileTreeVmFactory profileTreeVmFactory,
                       ILayerBrushService layerBrushService) :
     base(layer, rgbService, profileEditorService, dialogService, profileTreeVmFactory, layerBrushService)
 {
 }
Esempio n. 3
0
 // I hate this about DI, oh well
 public FolderViewModel(ProfileElement folder,
                        IProfileEditorService profileEditorService,
                        IDialogService dialogService,
                        IProfileTreeVmFactory profileTreeVmFactory,
                        ILayerBrushService layerBrushService,
                        ISurfaceService surfaceService) :
     base(folder, profileEditorService, dialogService, profileTreeVmFactory, layerBrushService, surfaceService)
 {
 }
Esempio n. 4
0
 public LayerViewModel(ProfileElement layer,
                       IRgbService rgbService,
                       IProfileEditorService profileEditorService,
                       IDialogService dialogService,
                       IProfileTreeVmFactory profileTreeVmFactory,
                       ILayerBrushService layerBrushService,
                       IWindowManager windowManager,
                       ILayerHintVmFactory vmFactory) :
     base(layer, rgbService, profileEditorService, dialogService, profileTreeVmFactory, layerBrushService)
 {
     _windowManager = windowManager;
     _vmFactory     = vmFactory;
 }
Esempio n. 5
0
        protected TreeItemViewModel(ProfileElement profileElement,
                                    IProfileEditorService profileEditorService,
                                    IDialogService dialogService,
                                    IProfileTreeVmFactory profileTreeVmFactory,
                                    ILayerBrushService layerBrushService,
                                    ISurfaceService surfaceService)
        {
            _profileEditorService = profileEditorService;
            _dialogService        = dialogService;
            _profileTreeVmFactory = profileTreeVmFactory;
            _layerBrushService    = layerBrushService;
            _surfaceService       = surfaceService;

            ProfileElement = profileElement;

            Subscribe();
            UpdateProfileElements();
        }