Пример #1
0
 //
 public int GetLastID()
 {
     if (this.data == null)
     {
         this.data = new DaiLyInternet_Data();
     }
     return(Convert.ToInt32(this.data.GetLastID()));
 }
Пример #2
0
        public int LayMaMax()
        {
            DaiLyInternet_Data Int   = new DaiLyInternet_Data();
            DataTable          table = Int.LayMaMax();

            try
            {
                int i = Convert.ToInt32(table.Rows[0][0].ToString());
                return(++i);
            }
            catch (Exception e)
            {
                e.ToString();
                return(1);
            }
        }