Exemplo n.º 1
0
 public AddWaypointForm(Form source, DatabaseCommunicator.DatabaseCommunicator dbCommunicator, HashSet <string> existingWaypointNames)
 {
     this.source = source;
     InitializeComponent();
     this.dbCommunicator        = dbCommunicator;
     returnWaypoint             = null;
     errorLabel.Text            = "";
     this.existingWaypointNames = existingWaypointNames;
 }
 /// <summary> This constructor create new XmlExporter, SqliteDatabaseCommunicator,
 /// HashSet of Importer points and HashSet for waypoints. </summary>
 public RouteCreatorForm()
 {
     InitializeComponent();
     importer              = new LfvImporter(RADIUS);
     dbCommunicator        = new SqliteDatabaseCommunicator();
     xmlExporter           = new XmlExporter();
     waypointSet           = new HashSet <Importer.Point>();
     existingWaypointNames = new HashSet <string>();
     airportCode           = "";
 }
Exemplo n.º 3
0
 /// <summary> This method create files from database and export them.
 /// <param name="db"> The database db contains informations which the created files need to have. </param>
 /// <returns> Returns true if the new files are created. </returns>
 /// </summary>
 public abstract bool ExportFiles(DatabaseCommunicator.DatabaseCommunicator db);