示例#1
0
        public void SetSelect()
        {
            foreach (Control control in this.Parent.Controls)
            {
                if (control.Tag != null && control.Tag.ToString() == "selected")
                {
                    control.Tag       = "";
                    control.BackColor = System.Drawing.Color.White;
                    break;
                }
            }

            this.BackColor         = System.Drawing.Color.DodgerBlue;
            this.labName.ForeColor = System.Drawing.Color.White;
            this.Tag = "selected";


            ChatItemSelect.Invoke(this, new ChatItemSelectEventArgs(this.labName.Text, UserName));
        }
示例#2
0
        public void SetSelect()
        {
            foreach (Control control in this.Parent.Controls)
            {
                if (control.Tag != null && control.Tag.ToString() == "selected")
                {
                    control.Tag       = "";
                    control.BackColor = System.Drawing.Color.White;
                    break;
                }
            }

            this.BackColor = System.Drawing.Color.FromArgb(211, 219, 206);

            this.Tag           = "selected";
            this.newChatNumber = 0;
            CheckNewChat();
            ChatItemSelect.Invoke(this, new ChatItemSelectEventArgs(this.labName.Text, UserName));
        }