コード例 #1
0
 private void ContactList_ControlRemoved(object sender, ControlEventArgs e)
 {
     if (e.Control is GroupPanel)
     {
         GroupPanel gp = (GroupPanel)e.Control;
         group_panels.Remove(gp.Text);
     }
 }
コード例 #2
0
        private void ContactList_ControlAdded(object sender, ControlEventArgs e)
        {
            if (e.Control is GroupPanel)
            {
                GroupPanel gp = (GroupPanel)e.Control;
                gp.Dock = DockStyle.Top;

                group_panels.Add(gp.Text, gp);
            }
        }
コード例 #3
0
        public void AddContactItem(ContactItem ci, string groupName)
        {
            if (!group_panels.ContainsKey (groupName)) {
                GroupPanel gp = new GroupPanel ();
                gp.Text = groupName;

                Controls.Add (gp);
            }

            ci.Style = style;

            group_panels[groupName].Items.Add (ci);
        }
コード例 #4
0
        public void AddContactItem(ContactItem ci, string groupName)
        {
            if (!group_panels.ContainsKey(groupName))
            {
                GroupPanel gp = new GroupPanel();
                gp.Text = groupName;

                Controls.Add(gp);
            }

            ci.Style = style;

            group_panels[groupName].Items.Add(ci);
        }