UWUVCI-AIO-WPF/UWUVCI AIO WPF/Models/MainViewModel.cs

48 lines
1 KiB
C#
Raw Normal View History

2020-03-01 15:07:22 +00:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace UWUVCI_AIO_WPF
{
class MainViewModel : BaseModel
{
//public GameConfig GameConfiguration { get; set; }
private GameConfig gameConfiguration;
public GameConfig GameConfiguration
{
get { return gameConfiguration; }
set
{
gameConfiguration = value;
OnPropertyChanged();
}
}
public bool pathsSet { get; set; } = false;
public bool PathsSet
{
get { return pathsSet; }
set
{
pathsSet = value;
OnPropertyChanged();
}
}
2020-03-01 15:07:22 +00:00
public MainViewModel()
{
GameConfiguration = new GameConfig();
UpdatePathSet(Properties.Settings.Default.PathsSet);
}
public void UpdatePathSet(bool newValue)
{
PathsSet = newValue;
2020-03-01 15:07:22 +00:00
}
}
}