FSUIPC Client DLL
.NET interface for FSUIPC
AirportsDatabase Class Reference

A class that reads the files produced by Pete Dowson's MakeRunways.exe and provides your application with a database of airports with runway, helipad, gate and taxiway information More...

Public Member Functions

void CheckStatus ()
 Forces the Airports Database to check MakeRunways paths and its own database More...
 
void Load ()
 Loads the basic airport information into the Airports collection More...
 
void Clear ()
 Clears all the airports from the database. Use to free up memory if your application no longer needs the database. More...
 
async Task RebuildDatabaseAsync ()
 Rebuilds the internal database by reading the data from the text files generated by Pete Dowson's MakeRunways program. (See www.fsuipc.com) More...
 
async Task RebuildDatabaseAsync (IProgress< string > ProgressReport)
 Rebuilds the internal database by reading the data from the text files generated by Pete Dowson's MakeRunways program. (See www.fsuipc.com) More...
 

Properties

bool MakeRunwaysFilesExist [get]
 True if the MakeRunways output files have been found in the current MakeRunways folder More...
 
bool DatabaseFilesExist [get]
 True if the internal database files have been found More...
 
bool DatabaseUpToDate [get]
 True if the internal database contains the latest information from the MakeRunways output files More...
 
bool IsLoaded [get]
 True if the internal database has been loaded and is ready to use More...
 
string MakeRunwaysFolder [get, set]
 Sets/Gets the path of the folder containing the text files generated by MakeRunways.exe. More...
 
string DatabaseFolder [get, set]
 Gets the path containing the internal database files More...
 
FsAirportCollection Airports [get]
 A strongly-types list of FsAirport objects. This list can be queried with LINQ. More...
 

Detailed Description

A class that reads the files produced by Pete Dowson's MakeRunways.exe and provides your application with a database of airports with runway, helipad, gate and taxiway information

Member Function Documentation

◆ CheckStatus()

void CheckStatus ( )
inline

Forces the Airports Database to check MakeRunways paths and its own database

◆ Clear()

void Clear ( )
inline

Clears all the airports from the database. Use to free up memory if your application no longer needs the database.

◆ Load()

void Load ( )
inline

Loads the basic airport information into the Airports collection

◆ RebuildDatabaseAsync() [1/2]

async Task RebuildDatabaseAsync ( )
inline

Rebuilds the internal database by reading the data from the text files generated by Pete Dowson's MakeRunways program. (See www.fsuipc.com)

Returns

◆ RebuildDatabaseAsync() [2/2]

async Task RebuildDatabaseAsync ( IProgress< string >  ProgressReport)
inline

Rebuilds the internal database by reading the data from the text files generated by Pete Dowson's MakeRunways program. (See www.fsuipc.com)

Parameters
ProgressReportAn instance of Progress<string> to receive messages about the progress of the rebuild

Property Documentation

◆ Airports

FsAirportCollection Airports
get

A strongly-types list of FsAirport objects. This list can be queried with LINQ.

◆ DatabaseFilesExist

bool DatabaseFilesExist
get

True if the internal database files have been found

◆ DatabaseFolder

string DatabaseFolder
getset

Gets the path containing the internal database files

By default this set to a subfolder in the local machine's localappdata% path. If you have a specific path you want to use then set this property

◆ DatabaseUpToDate

bool DatabaseUpToDate
get

True if the internal database contains the latest information from the MakeRunways output files

◆ IsLoaded

bool IsLoaded
get

True if the internal database has been loaded and is ready to use

◆ MakeRunwaysFilesExist

bool MakeRunwaysFilesExist
get

True if the MakeRunways output files have been found in the current MakeRunways folder

◆ MakeRunwaysFolder

string MakeRunwaysFolder
getset

Sets/Gets the path of the folder containing the text files generated by MakeRunways.exe.

By default this is the flight sim folder provided by FSUIPC if the connection is open. Set the property to use a different folder