private void LoadUnformattedData() { var filePath = this.GetUnformattedDataFrom(); if (string.IsNullOrEmpty(filePath)) { return; } FileInputClass.ReadTitlesFromFile(filePath); DataStorageOperationsClass.AddToBackUpList(this.DataCopy); this.totalCount = this.DataCopy.Count; }
private void LoadUnformattedData() { this.BookIsNotASeriesControlSettings(); this.GetUnformattedDataFrom(); if (string.IsNullOrEmpty(this.filePath)) { return; } FileInputClass.ReadTitlesFromFile(this.filePath); DataStorageOperationsClass.AddToBackUpList(this.dataCopy); this.totalCount = this.dataCopy.Count; }
private void GetUnformattedDataFrom() { // TODO: Check to see if any unformatted data for the selected author // TODO: Only show unformatted data for author selected. // TODO; Instead of list box use next previous first last. var dirPath = BookListPropertiesClass.PathToAuthorsDirectory; if (!AuthorsFileNamesCollection.ContainsItem(BookListPropertiesClass.AuthorsNameCurrent)) { return; } var index = AuthorsFileNamesCollection.GetItemIndex(BookListPropertiesClass.AuthorsNameCurrent); var fileName = AuthorsFileNamesCollection.GetItemAt(index); Debug.Assert(dirPath != null, nameof(dirPath) + " != null"); var filePath = DirectoryFileOperationsClass.CombineDirectoryPathWithFileName(dirPath, fileName); this.GetAuthorsName(fileName); DataStorageOperationsClass.AddToBackUpList(this.bkUpData) }
private void LoadUnformattedData() { this.GetUnformattedDataFrom(); DataStorageOperationsClass.AddToBackUpList(this.bkUpData); }
private void LoadUnformattedData() { this.GetUnformattedDataFrom(); DataStorageOperationsClass.AddToBackUpList(this.DataCopy); this.totalCount = this.DataCopy.Count; }