C# Класс gp.Files.FactDB

Create and Maintain a List of Random Facts.
Показать файл Открыть проект

Открытые методы

Метод Описание
GetRandomFact ( ) : string

Get a Random Fact from the FactDB List [Note: Do not forget to assign the FilePath (excluding the FileName) to the property: gp.Files.FileLoader.FilePath]

ReLoadList ( ) : void

Reload the FactDB List. [Note: Do not forget to assign the FilePath (excluding the FileName) to the property: gp.Files.FileLoader.FilePath]

StoreFact ( string fullFilePath, int count ) : void

Get and Store n number of Random Facts from the factURL, where n = Count [Note: Do not forget to assign the FilePath (excluding the FileName) to the property: gp.Files.FileLoader.FilePath]

Приватные методы

Метод Описание
FactDB ( ) : System

Reads Words File

Описание методов

GetRandomFact() публичный Метод

Get a Random Fact from the FactDB List [Note: Do not forget to assign the FilePath (excluding the FileName) to the property: gp.Files.FileLoader.FilePath]
public GetRandomFact ( ) : string
Результат string

ReLoadList() публичный Метод

Reload the FactDB List. [Note: Do not forget to assign the FilePath (excluding the FileName) to the property: gp.Files.FileLoader.FilePath]
public ReLoadList ( ) : void
Результат void

StoreFact() публичный Метод

Get and Store n number of Random Facts from the factURL, where n = Count [Note: Do not forget to assign the FilePath (excluding the FileName) to the property: gp.Files.FileLoader.FilePath]
public StoreFact ( string fullFilePath, int count ) : void
fullFilePath string The Path and the FileName.
count int The number of Facts to be returned.
Результат void