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>
33 lines
624 B
C#
33 lines
624 B
C#
/* ServerSetting.cs
|
|
* License: NCSA Open Source License
|
|
*
|
|
* Copyright: SPT
|
|
* AUTHORS:
|
|
* waffle.lord
|
|
*/
|
|
|
|
|
|
using SPT.Launcher.Utilities;
|
|
|
|
namespace SPT.Launcher.Models.Launcher
|
|
{
|
|
public class ServerSetting : NotifyPropertyChangedBase
|
|
{
|
|
public LoginModel AutoLoginCreds { get; set; } = null;
|
|
|
|
private string _name;
|
|
public string Name
|
|
{
|
|
get => _name;
|
|
set => SetProperty(ref _name, value);
|
|
}
|
|
|
|
private string _url;
|
|
public string Url
|
|
{
|
|
get => _url;
|
|
set => SetProperty(ref _url, value);
|
|
}
|
|
}
|
|
}
|