Files
amacocian ab1b604aec Code cleanup (#1026)
* Resolve warnings and move shared props to Directory.Build.props and Directory.Packages.props

* Cleanup more messages

* Fix more messages

* Fix build issues
2025-06-29 17:32:52 +02:00

93 lines
2.2 KiB
C#

using Daybreak.Shared.Models.LaunchConfigurations;
using Daybreak.Shared.Services.Api;
using Daybreak.Shared.Services.Mods;
using System.ComponentModel;
namespace Daybreak.Shared.Models;
public sealed class LauncherViewContext : INotifyPropertyChanged
{
public event PropertyChangedEventHandler? PropertyChanged;
public LaunchConfigurationWithCredentials? Configuration { get; init; }
public bool CanLaunch
{
get;
set
{
field = value;
this.PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(nameof(this.CanLaunch)));
}
} = false;
public bool CanKill
{
get;
set
{
field = value;
this.PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(nameof(this.CanKill)));
}
} = false;
public bool CanAttach
{
get;
set
{
field = value;
this.PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(nameof(this.CanAttach)));
}
} = false;
public bool GameRunning
{
get;
set
{
field = value;
this.PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(nameof(this.GameRunning)));
}
} = false;
public bool ShowJustName
{
get;
set
{
field = value;
this.PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(nameof(this.ShowJustName)));
}
} = false;
public GuildWarsApplicationLaunchContext? AppContext
{
get;
set
{
field = value;
this.PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(nameof(this.AppContext)));
}
}
public ScopedApiContext? ApiContext
{
get;
set
{
field = value;
this.PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(nameof(this.ApiContext)));
}
}
public IEnumerable<IModService>? ModsToReapply
{
get;
set
{
field = value;
this.PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(nameof(this.ModsToReapply)));
}
}
}