Пример #1
0
 private void button3_Click(object sender, EventArgs e)
 {
     doAction.updateMessageReadOrNotRead(this._messageID, "Read");
     SenderLabel.Font       = new Font("Bahnschrift Light", SenderLabel.Font.Size);
     SubjectLabel.ForeColor = Color.Black;
     SubjectLabel.Font      = new Font("Bahnschrift Light", SubjectLabel.Font.Size);
     ReadPanel.BackColor    = Color.AliceBlue;
     MarkAsNotReadButton.Show();
     MarkAsReadButton.Hide();
 }
Пример #2
0
 private void MessageListItem_Load(object sender, EventArgs e)
 {
     if (this.ReadOrNotRead == "Not_Read")
     {
         SenderLabel.Font       = new Font("Bahnschrift Bold", SenderLabel.Font.Size);
         SubjectLabel.ForeColor = Color.FromArgb(185, 209, 234);
         SubjectLabel.Font      = new Font("Bahnschrift Bold", SubjectLabel.Font.Size);
         SubjectLabel.Text      = Subject;
         ReadPanel.BackColor    = Color.FromArgb(185, 209, 234);
         MarkAsReadButton.Show();
         MarkAsNotReadButton.Hide();
     }
     else
     {
         SenderLabel.Font       = new Font("Bahnschrift Light", SenderLabel.Font.Size);
         SubjectLabel.ForeColor = Color.Black;
         SubjectLabel.Font      = new Font("Bahnschrift Light", SubjectLabel.Font.Size);
         ReadPanel.BackColor    = Color.AliceBlue;
         MarkAsNotReadButton.Show();
         MarkAsReadButton.Hide();
     }
 }