public BuddyInfo(Widget parent) : base(parent) { av = new AvatarView(this); tbName = new TextBox(this); tbName.Move(10, 100); tbName.Resize(150, 20); tbName.KeyDown += OnNameTextBoxKeyDown; btnChat = new Button(this, 20); btnChat.Move(10, 165); btnChat.Text = "Private chat"; btnChat.Click += () => Chat.Raise(); btnRemove = new Button(this, 20); btnRemove.Move(10, 188); btnRemove.Click += () => RemoveBuddy.Raise(); btnInvite = new Button(this, 20); btnInvite.Move(10, 211); btnInvite.Text = "Invite to party"; btnInvite.Click += () => Invite.Raise(); btnDescribe = new Button(this, 20); btnDescribe.Move(10, 234); btnDescribe.Text = "Describe to..."; btnDescribe.Click += () => Describe.Raise(); btnExile = new Button(this, 20); btnExile.Move(10, 257); btnExile.Text = "Exile"; btnExile.Click += () => Exile.Raise(); lblLastSeen = new Label(this, Fonts.LabelText); lblLastSeen.AutoSize = true; lblLastSeen.Move(10, 150); groupSelector = new GroupSelector(this); groupSelector.Move(8, 128); groupSelector.Select += group => ChangeGroup.Raise(group); Clear(); }