Beispiel #1
0
        public void loadMessage(MessageWithRecipient msg)
        {
            s = msg;
            if (msg.MessageRecipient.MessageStatusTypeID == (int)MessageStatusType.MessageStatusTypes.Unread)
            {
                statusMessage();
            }
            lb_To.Text = msg.Sender.UserName;
            lb_Subject.Text = msg.Message.Subject;
            lb_MessageID.Text = msg.MessageRecipient.MessageRecipientID.ToString();
            lb_Thoigian0.Text = msg.Message.CreateDate.ToString();
            lb_Thoigian1.Text = msg.Message.MessageID.ToString();
            if (msg.Message.Body.Length > 60)
            {
                string ss = msg.Message.Body.Substring(0, 60);
                lb_Content.Text = " --- " + ss + " ... ";
            }
            else
                lb_Content.Text = msg.Message.Body + " ... ";

            lb_Noidung.Text = msg.Message.Body;
        }
Beispiel #2
0
 public void LoadMessage(MessageWithRecipient msg)
 {
     lb_Noidung.Text = msg.Message.Body;
     lb_Thoigian.Text = msg.Message.CreateDate.ToString();
     lbt_Nguoigui.Text = msg.Message.SendByAccountID.ToString();
 }
Beispiel #3
0
 public void LoadReply(MessageWithRecipient message)
 {
     tb_Subject.Text = "RE: " + message.Message.Subject;
     tb_To.Text = message.Sender.UserName;
     tb_Box.Text = "<BR><BR><HR>Sent On: " + message.Message.CreateDate.ToString() + "<BR>Subject: " + message.Message.Subject + "<BR>Message: " + message.Message.Body;
 }