0
0
mirror of https://github.com/sp-tarkov/launcher.git synced 2025-02-13 09:50:43 -05:00

54 lines
1.1 KiB
C#
Raw Normal View History

2023-03-03 19:25:33 +00:00
/* ServerSetting.cs
* License: NCSA Open Source License
*
2024-05-21 20:15:19 +01:00
* Copyright: SPT
2023-03-03 19:25:33 +00:00
* AUTHORS:
* waffle.lord
*/
using System.ComponentModel;
2024-05-21 20:15:19 +01:00
namespace SPT.Launcher.Models.Launcher
2023-03-03 19:25:33 +00:00
{
public class ServerSetting : INotifyPropertyChanged
{
public LoginModel AutoLoginCreds { get; set; } = null;
private string _Name;
public string Name
{
get => _Name;
set
{
if (_Name != value)
{
_Name = value;
RaisePropertyChanged(nameof(Name));
}
}
}
private string _Url;
public string Url
{
get => _Url;
set
{
if (_Url != value)
{
_Url = value;
RaisePropertyChanged(nameof(Url));
}
}
}
public event PropertyChangedEventHandler PropertyChanged;
protected virtual void RaisePropertyChanged(string property)
{
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(property));
}
}
}