UI - Removed Fody, begone arrogant devs!

This commit is contained in:
Robert committed 2020-06-30 14:39:12 +02:00
1 parent 3bc1da8ca6
commit 88a15abc8c
49 files changed
+1011 -232

No files matched your search

@@ -15,6 +15,7 @@ namespace Artemis.UI.PropertyInput
{
private readonly ILayerService _layerService;
private readonly IPluginService _pluginService;
private List<LayerBrushDescriptor> _descriptors;
public BrushPropertyInputViewModel(LayerProperty<LayerBrushReference> layerProperty, IProfileEditorService profileEditorService,
ILayerService layerService, IPluginService pluginService) : base(layerProperty, profileEditorService)
@@ -27,7 +28,11 @@ namespace Artemis.UI.PropertyInput
UpdateEnumValues();
}
public List<LayerBrushDescriptor> Descriptors { get; set; }
public List<LayerBrushDescriptor> Descriptors
{
get => _descriptors;
set => SetAndNotify(ref _descriptors, value);
}
public LayerBrushDescriptor SelectedDescriptor
{
@@ -18,14 +18,12 @@ namespace Artemis.UI.PropertyInput
}
// Since SKSize is immutable we need to create properties that replace the SKSize entirely
// [DependsOn(nameof(InputValue))]
public float Width
{
get => InputValue.Width;
set => InputValue = new SKSize(value, Height);
}
// [DependsOn(nameof(InputValue))]
public float Height
{
get => InputValue.Height;