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-08 22:25:34 +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
|
|
|
|
|
2020-03-01 15:52:59 +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-08 22:25:34 +00:00
|
|
|
|
|
2020-03-02 17:44:01 +00:00
|
|
|
|
|
2020-03-01 15:07:22 +00:00
|
|
|
|
GameConfiguration = new GameConfig();
|
2020-03-01 15:52:59 +00:00
|
|
|
|
UpdatePathSet(Properties.Settings.Default.PathsSet);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void UpdatePathSet(bool newValue)
|
|
|
|
|
{
|
|
|
|
|
PathsSet = newValue;
|
2020-03-01 15:07:22 +00:00
|
|
|
|
}
|
2020-03-08 22:25:34 +00:00
|
|
|
|
|
|
|
|
|
|
2020-03-01 15:07:22 +00:00
|
|
|
|
}
|
|
|
|
|
}
|