public ProfileLayerViewModel(Layer layer, PanZoomViewModel panZoomViewModel, IProfileEditorService profileEditorService, ILayerEditorService layerEditorService) { _panZoomViewModel = panZoomViewModel; _profileEditorService = profileEditorService; _layerEditorService = layerEditorService; Layer = layer; }
public EditToolViewModel(PanZoomViewModel panZoomViewModel, IProfileEditorService profileEditorService, ILayerEditorService layerEditorService) : base(panZoomViewModel, profileEditorService) { _layerEditorService = layerEditorService; Cursor = Cursors.Arrow; Update(); }
public ProfileViewModel(IProfileEditorService profileEditorService, ILayerEditorService layerEditorService, ISurfaceService surfaceService, ISettingsService settingsService, IEventAggregator eventAggregator, IProfileLayerViewModelFactory profileLayerViewModelFactory) { _profileEditorService = profileEditorService; _layerEditorService = layerEditorService; _surfaceService = surfaceService; _settingsService = settingsService; _profileLayerViewModelFactory = profileLayerViewModelFactory; Execute.OnUIThreadSync(() => { CanvasViewModels = new ObservableCollection <CanvasViewModel>(); DeviceViewModels = new ObservableCollection <ProfileDeviceViewModel>(); PanZoomViewModel = new PanZoomViewModel { LimitToZero = false }; }); ApplySurfaceConfiguration(surfaceService.ActiveSurface); ApplyActiveProfile(); CreateUpdateTrigger(); ActivateToolByIndex(0); _profileEditorService.SelectedProfileChanged += OnSelectedProfileChanged; _profileEditorService.SelectedProfileElementChanged += OnSelectedProfileElementChanged; _profileEditorService.SelectedProfileElementUpdated += OnSelectedProfileElementUpdated; eventAggregator.Subscribe(this); }
public SelectionToolViewModel(ProfileViewModel profileViewModel, IProfileEditorService profileEditorService, ILayerEditorService layerEditorService) : base(profileViewModel, profileEditorService) { _layerEditorService = layerEditorService; using (var stream = new MemoryStream(Resources.aero_crosshair)) { Cursor = new Cursor(stream); } }
public EditToolViewModel(ProfileViewModel profileViewModel, IProfileEditorService profileEditorService, ILayerEditorService layerEditorService) : base(profileViewModel, profileEditorService) { _layerEditorService = layerEditorService; Cursor = Cursors.Arrow; Update(); profileEditorService.SelectedProfileChanged += (sender, args) => Update(); profileEditorService.SelectedProfileElementUpdated += (sender, args) => Update(); profileEditorService.ProfilePreviewUpdated += (sender, args) => Update(); }
public ProfileLayerViewModel(Layer layer, IProfileEditorService profileEditorService, ILayerEditorService layerEditorService) { _profileEditorService = profileEditorService; _layerEditorService = layerEditorService; Layer = layer; Update(); Layer.RenderPropertiesUpdated += LayerOnRenderPropertiesUpdated; _profileEditorService.SelectedProfileElementChanged += OnSelectedProfileElementChanged; _profileEditorService.SelectedProfileElementUpdated += OnSelectedProfileElementUpdated; _profileEditorService.ProfilePreviewUpdated += ProfileEditorServiceOnProfilePreviewUpdated; }