mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 20:06:33 +00:00
Change profile editor VMs to use event aggregator
This commit is contained in:
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; }
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user