예제 #1
0
        public DataSet GetComboDelay_Type()
        {
            Delay_TypesTableAdapter a = new Delay_TypesTableAdapter();
            DataSet ds = new DataSet();

            ds.Tables.Add(a.GetCombo());
            return(ds);
        }
예제 #2
0
 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);
 }
예제 #3
0
 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);
 }