public DataSet GetComboAirport_types() { Airport_TypesTableAdapter a = new Airport_TypesTableAdapter(); DataSet ds = new DataSet(); ds.Tables.Add(a.GetCombo()); return(ds); }
public bool DeleteAirport_Types(short Original_ID, string usr, string pass) { if (authenticate(usr, pass, 15) == false) { return(false); } try { Airport_TypesTableAdapter u = new Airport_TypesTableAdapter(); u.DeleteQuery(Original_ID); } catch (Exception e) { return(false); } return(true); }
public bool InsertAirport_Types(string Name, string usr, string pass) { if (authenticate(usr, pass, 16) == false) { return(false); } try { Airport_TypesTableAdapter u = new Airport_TypesTableAdapter(); u.Insert(Name); } catch (Exception e) { return(false); } return(true); }