mirror of
https://github.com/LorisYounger/VPet.git
synced 2024-08-30 18:42:36 +00:00
33 lines
824 B
C#
33 lines
824 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using VPet.Solution.Models.SaveViewer;
|
|
using VPet.Solution.Views.SaveViewer;
|
|
|
|
namespace VPet.Solution.ViewModels.SaveViewer;
|
|
|
|
public class SaveDataPageVM : ObservableClass<SaveDataPageVM>
|
|
{
|
|
private SaveModel _save;
|
|
public SaveModel Save
|
|
{
|
|
get => _save;
|
|
set => SetProperty(ref _save, value);
|
|
}
|
|
|
|
public SaveDataPageVM()
|
|
{
|
|
SaveWindowVM.Current.PropertyChangedX += Current_PropertyChangedX;
|
|
}
|
|
|
|
private void Current_PropertyChangedX(SaveWindowVM sender, PropertyChangedXEventArgs e)
|
|
{
|
|
if (e.PropertyName == nameof(SaveWindowVM.CurrentSave) && sender.CurrentSave is not null)
|
|
{
|
|
Save = sender.CurrentSave;
|
|
}
|
|
}
|
|
}
|