Exemplo n.º 1
0
 public bool InsertDelay_Cause(short type, int FlightID, string Description, string usr, string pass)
 {
     if (authenticate(usr, pass, 34) == false)
     {
         return(false);
     }
     try
     {
         Delay_CauseTableAdapter u = new Delay_CauseTableAdapter();
         u.Insert(Description, FlightID, type);
     }
     catch (Exception e) { return(false); }
     return(true);
 }
Exemplo n.º 2
0
 public bool UpdateDelay_Cause(short type, string Description, int Original_ID, string usr, string pass)
 {
     if (authenticate(usr, pass, 34) == false)
     {
         return(false);
     }
     try
     {
         Delay_CauseTableAdapter u = new Delay_CauseTableAdapter();
         u.UpdateQuery(Description, type, Original_ID);
     }
     catch (Exception e) { return(false); }
     return(true);
 }