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

51 lines
1.2 KiB
C#
Raw Normal View History

2023-03-03 19:25:33 +00:00
/* ConnectServerModel.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:
*/
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 ConnectServerModel : INotifyPropertyChanged
{
private string _InfoText;
public string InfoText
{
get => _InfoText;
set
{
if (_InfoText != value)
{
_InfoText = value;
RaisePropertyChanged(nameof(InfoText));
}
}
}
private bool _ConnectionFailed;
public bool ConnectionFailed
{
get => _ConnectionFailed;
set
{
if(_ConnectionFailed != value)
{
_ConnectionFailed = value;
RaisePropertyChanged(nameof(ConnectionFailed));
}
}
}
public event PropertyChangedEventHandler PropertyChanged;
protected virtual void RaisePropertyChanged(string property)
{
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(property));
}
}
}