示例#1
0
    // Hier wird die Tabelle Drone gefüllt
    // Zurzeit ist es nur eine Drone
    public void fillTableDronen()
    {
        Debug.Log ("Dronen");
        IDbConnection _connection = new SqliteConnection(_strDBName);
        IDbCommand _command = _connection .CreateCommand();
        string sql;
        _connection.Open();
        sql = " Delete From DRONEN";
        _command.CommandText = sql;
        _command.ExecuteNonQuery ();

        _connection.Close ();
        _connection.Dispose ();
        _connection = null;
        _command.Dispose ();
        _command = null;

        Drone drone = new Drone ();
        drone.setName ("QuadCopter");drone.setStatus ("0");this.addDrone (drone);
        drone = null;
    }