public DataSet GetComboUser_Type() { User_TypesTableAdapter a = new User_TypesTableAdapter(); DataSet ds = new DataSet(); ds.Tables.Add(a.GetCombo()); return(ds); }
public bool InsertUser_Type(string name, string usr, string pass) { if (authenticate(usr, pass, 32) == false) { return(false); } try { User_TypesTableAdapter u = new User_TypesTableAdapter(); u.Insert(name); } catch (Exception e) { return(false); } return(true); }
public bool UpdateUser_Type(string name, short Original_ID, string usr, string pass) { if (authenticate(usr, pass, 33) == false) { return(false); } try { User_TypesTableAdapter u = new User_TypesTableAdapter(); u.UpdateQuery(name, Original_ID); } catch (Exception e) { return(false); } return(true); }