public MainPage() { InitializeComponent(); this.Text += Program.sAppVersion; FlightPathDB = new FS2020_SQLLiteDB(); FlightPathDB.CreateTables(); flightPlan = new FlightPlan(); ThresholdLogWriteFreqTB.Text = FlightPathDB.GetTableOption("AboveThresholdWriteFreq"); ThresholdMinAltTB.Text = FlightPathDB.GetTableOption("ThresholdMinAltitude"); KMLFilePathTBRO.Text = FlightPathDB.GetTableOption("KMLFilePath"); if (string.Compare(FlightPathDB.GetTableOption("GoolgeEarthChoice"), "Application") == 0) { GoogleEarthAppRB.Checked = true; } else { GoogleEarthWebRB.Checked = true; } if (string.Compare(FlightPathDB.GetTableOption("SpeedUpVideoPlayback"), "true") == 0) { SpeedUpVideoPlaybackCB.Checked = true; } else { SpeedUpVideoPlaybackCB.Checked = false; } if (string.Compare(FlightPathDB.GetTableOption("AutomaticLogging"), "true") == 0) { AutomaticLoggingCB.Checked = true; } else { AutomaticLoggingCB.Checked = false; } LoggingThresholdGroundVelTB.Text = FlightPathDB.GetTableOption("AutomaticLoggingThreshold"); LoggingThresholdGroundVelTB.Enabled = AutomaticLoggingCB.Checked; ExportAsKmzCB.Checked = string.Equals(FlightPathDB.GetTableOption("ExportAsKMZ"), "true"); UploadToFtpCB.Checked = string.Equals(FlightPathDB.GetTableOption("UploadToFTP"), "true"); LoadFlightList(); }
internal ReplayFlightDataGenerator( FS2020_SQLLiteDB dbAccessor, (int flightNo, string flightName, int segmentDurationSecs) context