/******************************/ /* Other Functions */ /******************************/ #region Other Functions /// <summary> /// LoadFileList /// </summary> private void LoadFileList() { LST.LoadClass <RecentFiles>(ref _theRrecentFiles, LIST_FILE_NAME); FileList = _theRrecentFiles.FileList; if (FileList == null) { FileList = new ObservableCollection <FileName>(); } SelectedFile = _theRrecentFiles.SelectedFile; if (SelectedFile == null) { SelectedFile = new FileName(); } SelectedFile = FileList.SingleOrDefault(x => x.LongName == SelectedFile.LongName); }
/// <summary> /// SaveFileList /// </summary> private void SaveFileList() { _theRrecentFiles.FileList = FileList; _theRrecentFiles.SelectedFile = SelectedFile; LST.SaveClass <RecentFiles>(_theRrecentFiles, LIST_FILE_NAME); }