mirror of
https://github.com/stuff-by-3-random-dudes/UWUVCI-AIO-WPF
synced 2024-11-10 05:34:13 +00:00
Models added
This commit is contained in:
parent
55137c10b1
commit
a57f1a7f8f
3 changed files with 57 additions and 1 deletions
|
@ -310,7 +310,7 @@ namespace UWUVCI_AIO_WPF
|
|||
}
|
||||
else
|
||||
{
|
||||
//DirectoryCopy(Path.Combine(Properties.Settings.Default.BaseRomPath, baserom), baseRomPath, true);
|
||||
///DirectoryCopy(Path.Combine(Properties.Settings.Default.BaseRomPath, baserom), baseRomPath, true);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
25
UWUVCI AIO WPF/Models/BaseModel.cs
Normal file
25
UWUVCI AIO WPF/Models/BaseModel.cs
Normal file
|
@ -0,0 +1,25 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Linq;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Text;
|
||||
|
||||
namespace UWUVCI_AIO_WPF
|
||||
{
|
||||
public class BaseModel : INotifyPropertyChanged
|
||||
{
|
||||
// Declare the PropertyChanged event
|
||||
public event PropertyChangedEventHandler PropertyChanged;
|
||||
|
||||
// OnPropertyChanged will raise the PropertyChanged event passing the
|
||||
// source property that is being updated.
|
||||
protected void OnPropertyChanged([CallerMemberName]string propertyName = "")
|
||||
{
|
||||
if (this.PropertyChanged != null)
|
||||
{
|
||||
PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
31
UWUVCI AIO WPF/Models/MainViewModel.cs
Normal file
31
UWUVCI AIO WPF/Models/MainViewModel.cs
Normal file
|
@ -0,0 +1,31 @@
|
|||
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 MainViewModel()
|
||||
{
|
||||
GameConfiguration = new GameConfig();
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue