Data bindings - Finished main functionality

This commit is contained in:
SpoinkyNL committed 2020-09-14 19:16:32 +02:00
1 parent fea454ad12
commit f03ea410d4
23 files changed
+214 -135

No files matched your search

@@ -173,8 +173,10 @@ namespace Artemis.UI.Screens.ProfileEditor.Visualization
.ToList();
}
protected override void OnInitialActivate()
protected override void OnActivate()
{
ApplyActiveProfile();
OnlyShowSelectedShape = _settingsService.GetSetting("ProfileEditor.OnlyShowSelectedShape", true);
HighlightSelectedLayer = _settingsService.GetSetting("ProfileEditor.HighlightSelectedLayer", true);
@@ -184,10 +186,10 @@ namespace Artemis.UI.Screens.ProfileEditor.Visualization
_profileEditorService.ProfileElementSelected += OnProfileElementSelected;
_profileEditorService.SelectedProfileElementUpdated += OnSelectedProfileElementUpdated;
base.OnInitialActivate();
base.OnActivate();
}
protected override void OnClose()
protected override void OnDeactivate()
{
HighlightSelectedLayer.SettingChanged -= HighlightSelectedLayerOnSettingChanged;
_surfaceService.ActiveSurfaceConfigurationSelected -= OnActiveSurfaceConfigurationSelected;
@@ -204,12 +206,7 @@ namespace Artemis.UI.Screens.ProfileEditor.Visualization
canvasViewModel.Dispose();
CanvasViewModels.Clear();
base.OnClose();
}
protected override void OnActivate()
{
ApplyActiveProfile();
base.OnDeactivate();
}
private void OnActiveSurfaceConfigurationSelected(object sender, SurfaceConfigurationEventArgs e)