Пример #1
0
        public DataSet GetComboUser_Type()
        {
            User_TypesTableAdapter a = new User_TypesTableAdapter();
            DataSet ds = new DataSet();

            ds.Tables.Add(a.GetCombo());
            return(ds);
        }
Пример #2
0
 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);
 }
Пример #3
0
 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);
 }