public DataSet GetComboDelay_Type() { Delay_TypesTableAdapter a = new Delay_TypesTableAdapter(); DataSet ds = new DataSet(); ds.Tables.Add(a.GetCombo()); return(ds); }
public bool InsertDelay_Type(string Name, string usr, string pass) { if (authenticate(usr, pass, 19) == false) { return(false); } try { Delay_TypesTableAdapter u = new Delay_TypesTableAdapter(); u.Insert(Name); } catch (Exception e) { return(false); } return(true); }
public bool UpdateDelay_Type(string Name, short Original_ID, string usr, string pass) { if (authenticate(usr, pass, 20) == false) { return(false); } try { Delay_TypesTableAdapter u = new Delay_TypesTableAdapter(); u.UpdateQuery(Name, Original_ID); } catch (Exception e) { return(false); } return(true); }