示例#1
0
 void resetIndicator()
 {
     foreach (Control item in panel1.Controls)
     {
         btnMailItem curitem = ((btnMailItem)item);
         curitem.Active = false;
     }
 }
示例#2
0
        private void BtnMailItem1_Click(object sender, EventArgs e)
        {
            resetIndicator();

            ////Thiết lập animation cho panel
            bunifuTransition1.HideSync(pnlMsgContainer);

            btnMailItem item = ((btnMailItem)sender);

            item.Active       = true;
            lblFirstName.Text = item.FirstName;
            lblEmail.Text     = item.Email;

            lblSubject.Text = item.Subject;
            lblBody.Text    = item.Body + "\n\n" + item.FirstName + "\n" + item.Email;

            //Thiết lập animation cho panel
            bunifuTransition1.ShowSync(pnlMsgContainer);
        }