private void MarkAsNotReadButton_Click(object sender, EventArgs e) { doAction.updateMessageReadOrNotRead(this._messageID, "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); ReadPanel.BackColor = Color.FromArgb(185, 209, 234); MarkAsReadButton.Show(); MarkAsNotReadButton.Hide(); }
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(); } }