public void addUcf(Friend f) { UcFriend ucf = new UcFriend(); ucf.Frm=this; ucf.CurFriend = f; ucf.Top = this.pnFriendList.Controls.Count*ucf.Height; this.pnFriendList.Controls.Add(ucf); }
public void addUcf(Friend f) { UcFriend ucf = new UcFriend(); ucf.Frm = this; ucf.CurFriend = f; ucf.Top = this.pnFriendList.Controls.Count * ucf.Height; this.pnFriendList.Controls.Add(ucf); }