Initial commit
This commit is contained in:
29
Valheim Dashboard/ViewModels/LizenzViewModel.cs
Normal file
29
Valheim Dashboard/ViewModels/LizenzViewModel.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
using System.ComponentModel;
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
namespace Valheim_Dashboard.ViewModels;
|
||||
|
||||
public class LizenzViewModel : ViewModelBase
|
||||
{
|
||||
|
||||
public string LizenzKey { get; set; }
|
||||
|
||||
private string _verifizierungsAntwort;
|
||||
public string VerifizierungsAntwort
|
||||
{
|
||||
get => _verifizierungsAntwort;
|
||||
set
|
||||
{
|
||||
if (_verifizierungsAntwort != value)
|
||||
{
|
||||
_verifizierungsAntwort = value;
|
||||
OnPropertyChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public event PropertyChangedEventHandler? PropertyChanged;
|
||||
protected void OnPropertyChanged([CallerMemberName] string? name = null)
|
||||
=> PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(name));
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user