public void SaveReport(string flightName, CalculType calculType, double result)
 {
     using (var connection = new SQLiteConnection(_connectionString))
         using (var command = connection.CreateCommand())
         {
             connection.Open();
             command.CommandText = "INSERT INTO report (flight_name, calculType, calculDate, result)" +
                                   $" VALUES ('{flightName}', '{calculType.ToString()}', '{DateTime.Now.ToShortDateString()}', {result})";
             command.ExecuteNonQuery();
         }
 }
Beispiel #2
0
 public ComplexData(Delay delay, CalculType calculType, DeviceTypes deviceType)
     : base(delay, deviceType)
 {
     this.CalculType = calculType.ToString();
 }