private void btnCancel_Click(object sender, RoutedEventArgs e) { Button btn = (Button)e.OriginalSource; InvitationWindow dlg = new InvitationWindow(); dlg.Fill((UserDTO)btn.Tag, InviteFriendOperation.Reject); dlg.ShowDialog(); }
private void btnAcceptFriend_Click(object sender, EventArgs e) { InvitationWindow dlg = new InvitationWindow(); dlg.Fill(user.User, InviteFriendOperation.Accept); if (dlg.ShowDialog(this) == DialogResult.OK) { updateButtons(false); } }
private void btnRejectFriendship_Click(object sender, EventArgs e) { InvitationWindow dlg = new InvitationWindow(); dlg.Fill(user.User, InviteFriendOperation.Reject); if (dlg.ShowDialog() == true) { updateButtons(false); } }