Esempio n. 1
0
 public LayerViewModel(ProfileElement layer,
                       IRgbService rgbService,
                       IProfileEditorService profileEditorService,
                       IDialogService dialogService,
                       IProfileTreeVmFactory profileTreeVmFactory,
                       ILayerBrushService layerBrushService) :
     base(layer, rgbService, profileEditorService, dialogService, profileTreeVmFactory, layerBrushService)
 {
 }
Esempio n. 2
0
 public SelectionToolViewModel(PanZoomViewModel panZoomViewModel, IProfileEditorService profileEditorService, ILayerBrushService layerBrushService)
     : base(panZoomViewModel, profileEditorService)
 {
     _layerBrushService = layerBrushService;
     using (MemoryStream stream = new(Resources.aero_crosshair))
     {
         Cursor = new Cursor(stream);
     }
 }
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();
        }