Exemple #1
0
        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");
            }
        }
Exemple #2
0
        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");
            }
        }