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

62 lines
1.3 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; }
2020-03-01 16:15:54 +00:00
private GameConfig gameConfiguration = new GameConfig();
2020-03-01 15:07:22 +00:00
2020-03-01 15:07:22 +00:00
public GameConfig GameConfiguration
{
get { return gameConfiguration; }
set
{
gameConfiguration = value;
OnPropertyChanged();
}
}
2020-03-01 16:15:54 +00:00
private string romPath;
public string RomPath
{
get { return romPath; }
set { romPath = value;
OnPropertyChanged();
}
}
2020-03-01 15:07:22 +00:00
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()
{
2020-03-01 15:07:22 +00:00
GameConfiguration = new GameConfig();
UpdatePathSet(Properties.Settings.Default.PathsSet);
}
public void UpdatePathSet(bool newValue)
{
PathsSet = newValue;
2020-03-01 15:07:22 +00:00
}
2020-03-01 15:07:22 +00:00
}
}