示例#1
0
        public DataSet GetComboAirport_types()
        {
            Airport_TypesTableAdapter a = new Airport_TypesTableAdapter();
            DataSet ds = new DataSet();

            ds.Tables.Add(a.GetCombo());
            return(ds);
        }
示例#2
0
 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);
 }
示例#3
0
 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);
 }