private void ContactList_ControlRemoved(object sender, ControlEventArgs e) { if (e.Control is GroupPanel) { GroupPanel gp = (GroupPanel)e.Control; group_panels.Remove(gp.Text); } }
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); } }
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); }
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); }