示例#1
0
 public bool UpdateAirplane_Model(string Name, short Capacity, int MTOW, int Weight, int Original_ID, string usr, string pass)
 {
     if (authenticate(usr, pass, 44) == false)
     {
         return(false);
     }
     try
     {
         Airplane_ModelTableAdapter u = new Airplane_ModelTableAdapter();
         u.UpdateQuery(Name, Capacity, MTOW, Weight, Original_ID);
     }
     catch (Exception e) { return(false); }
     return(true);
 }
示例#2
0
 public bool InsertAirplane_Model(string Name, short Capacity, int MTOW, int Weight, string usr, string pass)
 {
     if (authenticate(usr, pass, 43) == false)
     {
         return(false);
     }
     try
     {
         Airplane_ModelTableAdapter u = new Airplane_ModelTableAdapter();
         u.Insert(Name, Capacity, MTOW, Weight);
     }
     catch (Exception e) { return(false); }
     return(true);
 }
示例#3
0
 public bool DeleteAirplane_Model(int Original_ID, string usr, string pass)
 {
     if (authenticate(usr, pass, 42) == false)
     {
         return(false);
     }
     try
     {
         Airplane_ModelTableAdapter u = new Airplane_ModelTableAdapter();
         u.DeleteQuery(Original_ID);
     }
     catch (Exception e) { return(false); }
     return(true);
 }