Ejemplo n.º 1
0
 public bool UpdateAirplane(string Register, int Serial, string Made_Date, int Model, short Usage_Type, string Owner, string Original_Register, string usr, string pass)
 {
     if (authenticate(usr, pass, 6) == false)
     {
         return(false);
     }
     try
     {
         AirplaneTableAdapter u = new AirplaneTableAdapter();
         u.UpdateQuery(Register, Serial, Made_Date, Model, Usage_Type, Owner, Original_Register);
     }
     catch (Exception e) { return(false); }
     return(true);
 }
Ejemplo n.º 2
0
 public bool InsertAirplane(string Register, int Serial, System.DateTime Made_Date, int Model, short Usage_Type, string Owner, string usr, string pass)
 {
     if (authenticate(usr, pass, 5) == false)
     {
         return(false);
     }
     try
     {
         AirplaneTableAdapter u = new AirplaneTableAdapter();
         u.Insert(Register, Serial, Made_Date, Model, Usage_Type, Owner);
     }
     catch (Exception e) { return(false); }
     return(true);
 }
Ejemplo n.º 3
0
 public bool DeleteAirplane(string Original_Register, string usr, string pass)
 {
     if (authenticate(usr, pass, 4) == false)
     {
         return(false);
     }
     try
     {
         AirplaneTableAdapter u = new AirplaneTableAdapter();
         u.DeleteQuery(Original_Register);
     }
     catch (Exception e) { return(false); }
     return(true);
 }