public void addUcf(Friend f) { UCFriend ucf = new UCFriend(); ucf.Frm = this; ucf.CurFriend = f; ucf.Top = this.pnFriendsList.Controls.Count * ucf.Height; ucf.Width = ucf.Width - 30; ucf.myDBClick += ucf_myDBClick; this.pnFriendsList.Controls.Add(ucf); }
public void RemoveUcf(UCFriend ucf) { this.pnFriendsList.Controls.Remove(ucf); }