mirror of
https://github.com/sp-tarkov/launcher.git
synced 2025-02-13 09:50:43 -05:00
- NotifyPropertyChangedBase created and implemented in classes that inherit INotifyPropertyChangedBase - Some optimization fixes in models (one of this - `Where(predicate).Count() == 0` to `All(invertedPredicate)` Co-authored-by: Valery Varaksa <varaksav62@gmail.com> Reviewed-on: SPT/Launcher#66 Co-authored-by: loyvsc <loyvsc@noreply.dev.sp-tarkov.com> Co-committed-by: loyvsc <loyvsc@noreply.dev.sp-tarkov.com>
30 lines
619 B
C#
30 lines
619 B
C#
/* ConnectServerModel.cs
|
|
* License: NCSA Open Source License
|
|
*
|
|
* Copyright: SPT
|
|
* AUTHORS:
|
|
*/
|
|
|
|
|
|
using SPT.Launcher.Utilities;
|
|
|
|
namespace SPT.Launcher.Models.Launcher
|
|
{
|
|
public class ConnectServerModel : NotifyPropertyChangedBase
|
|
{
|
|
private string _infoText;
|
|
public string InfoText
|
|
{
|
|
get => _infoText;
|
|
set => SetProperty(ref _infoText, value);
|
|
}
|
|
|
|
private bool _connectionFailed;
|
|
public bool ConnectionFailed
|
|
{
|
|
get => _connectionFailed;
|
|
set => SetProperty(ref _connectionFailed, value);
|
|
}
|
|
}
|
|
}
|