Change profile editor VMs to use event aggregator

This commit is contained in:
SpoinkyNL committed 2019-11-29 08:47:05 +01:00
1 parent 4debc867ad
commit c7a5532c34
11 files changed
+103 -77

No files matched your search

@@ -0,0 +1,12 @@
namespace Artemis.UI.Events
{
public class MainWindowFocusChanged
{
public MainWindowFocusChanged(bool isFocused)
{
IsFocused = isFocused;
}
public bool IsFocused { get; }
}
}
@@ -1,14 +0,0 @@
using System;
namespace Artemis.UI.Events
{
public class MainWindowFocusChangedEvent : EventArgs
{
public MainWindowFocusChangedEvent(bool isFocused)
{
IsFocused = isFocused;
}
public bool IsFocused { get; }
}
}
@@ -0,0 +1,15 @@
using Artemis.Core.Models.Profile;
using Artemis.Core.Models.Profile.Abstract;
namespace Artemis.UI.Events
{
public class ProfileEditorSelectedElementChanged
{
public ProfileEditorSelectedElementChanged(ProfileElement profileElement)
{
ProfileElement = profileElement;
}
public ProfileElement ProfileElement { get; }
}
}
@@ -0,0 +1,14 @@
using Artemis.Core.Models.Profile;
namespace Artemis.UI.Events
{
public class ProfileEditorSelectedProfileChanged
{
public ProfileEditorSelectedProfileChanged(Profile profile)
{
Profile = profile;
}
public Profile Profile { get; }
}
}