コード例 #1
0
        private void LoadUnformattedData()
        {
            var filePath = this.GetUnformattedDataFrom();

            if (string.IsNullOrEmpty(filePath))
            {
                return;
            }

            FileInputClass.ReadTitlesFromFile(filePath);

            DataStorageOperationsClass.AddToBackUpList(this.DataCopy);

            this.totalCount = this.DataCopy.Count;
        }
コード例 #2
0
        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;
        }
コード例 #3
0
        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)
        }
コード例 #4
0
 private void LoadUnformattedData()
 {
     this.GetUnformattedDataFrom();
     DataStorageOperationsClass.AddToBackUpList(this.bkUpData);
 }
コード例 #5
0
 private void LoadUnformattedData()
 {
     this.GetUnformattedDataFrom();
     DataStorageOperationsClass.AddToBackUpList(this.DataCopy);
     this.totalCount = this.DataCopy.Count;
 }