public void Remove(TypeDevice d)
 {
     this.Datas.Remove(d);
 }
 public static List<TypeDevice> toTypeDevices(this MySqlDataReader reader)
 {
     if (reader.HasRows)
     {
         List<TypeDevice> datas = new List<TypeDevice>();
         while (reader.Read())
         {
             if (!reader.IsDBNull(0))
             {
                 TypeDevice t = new TypeDevice();
                 t.ID = reader.GetInt32(Define.type_id);
                 t.Name = reader.GetString(Define.type_name);
                 t.Time = reader.GetDateTime(Define.type_time);
                 try
                 {
                     t.Comment = reader.GetString(Define.type_comment);
                 }
                 catch (Exception)
                 {
                 }
                 datas.Add(t);
             }
         }
         return datas;
     }
     return null;
 }