Closed GoogleCodeExporter closed 9 years ago
Private Sub Nameserver_ReverseAdded(ByVal sender As Object, ByVal e As
ContactEventArgs)
If MyBase.InvokeRequired Then
MyBase.Invoke(New EventHandler(Of ContactEventArgs)(AddressOf
Me.Nameserver_ReverseAdded), New Object() { sender, e })
Else
Dim contact As Contact = e.Contact
If (Me.messenger.Nameserver.Owner.NotifyPrivacy = NotifyPrivacy.PromptOnAdd)
Then
If (contact.OnPendingList OrElse (((contact.OnReverseList AndAlso Not
contact.OnAllowedList) AndAlso Not contact.OnBlockedList) AndAlso Not
contact.OnPendingList)) Then
Dim form As New ReverseAddedForm(contact)
AddHandler form.FormClosed, Function (ByVal f As Object, ByVal fce
As FormClosedEventArgs)
form = TryCast(f,ReverseAddedForm)
If (DialogResult.OK = form.DialogResult) Then
If form.AddToContactList Then
Me.messenger.Nameserver.ContactService.AddNewContact
(contact.Mail)
Thread.Sleep(200)
If form.Blocked Then
contact.Blocked = True
End If
ElseIf form.Blocked Then
contact.Blocked = True
Else
contact.OnAllowedList = True
End If
Thread.Sleep(200)
contact.OnPendingList = False
End If
End Function
form.Show(Me)
Else
MessageBox.Show((contact.Mail & " accepted your invitation and added
you their contact list."))
End If
End If
End If
End Sub
Please use Red Gate's Reflector to convert the code by machine.
Original comment by freezing...@gmail.com
on 23 Apr 2009 at 6:01
Original comment by freezing...@gmail.com
on 23 Apr 2009 at 6:02
Original issue reported on code.google.com by
tomsma...@gmail.com
on 22 Apr 2009 at 10:36