public void SaveNewSlot() { TextEntryWindow nameSlot = new TextEntryWindow(); nameSlot.ShowDialog(); string name = ((TextEntryWindowViewModel)nameSlot.DataContext).Name; if (name != null) { SaveDataAccess.ArchiveCurrentSave(name); Archives = SaveDataAccess.GetArchiveList(); RaisePropertyChanged("Archives"); RaisePropertyChanged("LastArchive"); } }
public void RenameSlot() { TextEntryWindow rename = new TextEntryWindow(); rename.ShowDialog(); string name = ((TextEntryWindowViewModel)rename.DataContext).Name; if (name != null) { SaveDataAccess.RenameArchive(Archive, name); Archives = SaveDataAccess.GetArchiveList(); RaisePropertyChanged("Archives"); RaisePropertyChanged("LastArchive"); } }