public void _AddUcUser(User user) { ucContact__User newContacUser = new ucContact__User(user, this); listContact__User.Add(newContacUser); this.pnList.Controls.Add(newContacUser); }
public void _LoadContact() { foreach (var item in contactBook.listMember) { ucContact__User newContact__User = new ucContact__User(item, this); listContact__User.Add(newContact__User); this.pnList.Controls.Add(newContact__User); } }
public void _RemoveContact__User(ucContact__User ucContact__User) { this.contactBook._RemoveMember(ucContact__User.user); this.pnList.Controls.Remove(ucContact__User); this.listContact__User.Remove(ucContact__User); }