예제 #1
0
 public Mensaje_Info(DataRow row)
 {
     this.row        = row;
     this.fecha      = ((DateTime)row["Date"]).Add(DateTime.Now - DataHelper.LastMailDate);
     this.from       = string.Format("{0}", row["From"]);
     this.subject    = string.Format("{0}", row["Subject"]);
     this.respondido = (bool)row["IsReply"];
     this.tiene_archivos_adjuntos = (bool)row["HasAttachment"];
     this.leido         = (DateTime.Now - fecha) > TimeSpan.FromHours(40);
     this.texto_mensaje = string.Format("{0}", row["Text"]);
     this.eliminado     = false;
     if (!Respondido)
     {
         prioridad = 2;
     }
     else
     if (string.IsNullOrEmpty(Carpeta))
     {
         prioridad = 0;
     }
     tipoMensaje = eTipoMail.Buzon_Ent;
     mailFolder  = Obtener_Carpeta(row);
     DataTweaking();
 }
예제 #2
0
 public Mensaje(DataRow row)
 {
     this.row           = row;
     this.date          = ((DateTime)row["Date"]).Add(DateTime.Now - DataHelper.LastMailDate);
     this.from          = string.Format("{0}", row["From"]);
     this.subject       = string.Format("{0}", row["Subject"]);
     this.si_respondido = (bool)row["IsReply"];
     this.hasAttachment = (bool)row["HasAttachment"];
     this.leer          = (DateTime.Now - date) > TimeSpan.FromHours(40);
     this.text          = string.Format("{0}", row["Text"]);
     this.eliminar      = false;
     if (!Si_Respondido)
     {
         prioridad = 2;
     }
     else
     if (string.IsNullOrEmpty(Carpeta))
     {
         prioridad = 0;
     }
     tipoMensaje = eTipoMail.Buzon_Ent;
     mailFolder  = Obtener_Carpeta(row);
     DataTweaking();
 }