mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 03:48:56 +00:00
UI - Use PropertyChanged.SourceGenerator everywhere else
This commit is contained in:
1 parent
d656c6960d
commit
190d797f1a
40 files changed
+223
-934
No files matched your search
@@ -2,12 +2,13 @@
|
||||
using Artemis.Core;
|
||||
using Artemis.Core.Services;
|
||||
using Artemis.UI.Shared;
|
||||
using PropertyChanged.SourceGenerator;
|
||||
|
||||
namespace Artemis.UI.Screens.Root;
|
||||
|
||||
public class SplashViewModel : ViewModelBase
|
||||
public partial class SplashViewModel : ViewModelBase
|
||||
{
|
||||
private string _status;
|
||||
[Notify] private string _status;
|
||||
|
||||
public SplashViewModel(ICoreService coreService, IPluginManagementService pluginManagementService)
|
||||
{
|
||||
@@ -24,13 +25,7 @@ public class SplashViewModel : ViewModelBase
|
||||
}
|
||||
|
||||
public ICoreService CoreService { get; }
|
||||
|
||||
public string Status
|
||||
{
|
||||
get => _status;
|
||||
set => RaiseAndSetIfChanged(ref _status, value);
|
||||
}
|
||||
|
||||
|
||||
private void OnPluginManagementServiceOnPluginManagementLoaded(object? sender, PluginEventArgs args)
|
||||
{
|
||||
Status = "Initializing UI";
|
||||
|
||||
Reference in new issue
Block a user