示例#1
0
        private void Record_Load(object sender, EventArgs e)
        {
            if (PropertiesS.IndexOf("UNREAD") == -1)
            {
                BackColor    = Color.White;
                panel1.Width = 0;
            }
            if (PropertiesS.IndexOf("STARRED") == -1)
            {
                Starred.Hide();
            }
            if (PropertiesS.IndexOf("IMPORTANT") == -1)
            {
                Important.Hide();
            }
            if (FileName == null || FileName == string.Empty)
            {
                Attachment.Hide();
            }

            SenderName.Text  = UserName;
            SenderAvt.Image  = Avatar;
            Subject.Text     = MsgSubject;
            TimeRecived.Text = RecivedTime;
        }