public void RaiseUserRemoved(UserEventArgs e)
 {
     UserRemoved.SafeInvoke(this, e);
 }
Example #2
0
 void OnUserChanged(object sender, UserEventArgs e)
 {
     UserChanged.SafeInvoke(this, e);
 }
 public void RaiseUserChanged(UserEventArgs e)
 {
     UserChanged.SafeInvoke(this, e);
 }
 public void RaiseUserRemoved(UserEventArgs e)
 {
     UserRemoved.SafeInvoke(this, e);
 }
Example #5
0
 void OnUserAdded(object sender, UserEventArgs e)
 {
     participants.Add(new Participant(e.User));
     UserAdded.SafeInvoke(this, e);
 }
 void OnUserRemoved(object sender, UserEventArgs e)
 {
     var participant = participants.Single(vm => vm.Contact == e.User);
     participants.Remove(participants.Single(vm => vm.Contact == e.User));
     typingParticipants.Remove(participant);
     participant.Dispose();
 }
 public void RaiseUserChanged(UserEventArgs e)
 {
     UserChanged.SafeInvoke(this, e);
 }
 void OnUserAdded(object sender, UserEventArgs e)
 {
     participants.Add(new UserViewModel(client, e.User));
 }
 void OnUserChanged(object sender, UserEventArgs e)
 {
     //			throw new NotImplementedException();
 }
Example #10
0
        void OnUserRemoved(object sender, UserEventArgs e)
        {
            participants.Remove(GetParticipant(e.User));
            UserRemoved.SafeInvoke(this, e);
            if (participants.Count == 0)
            {
                Ended.SafeInvoke(this, new EventArgs());

                events.UserAdded -= OnUserAdded;
                events.UserChanged -= OnUserChanged;
                events.UserRemoved -= OnUserRemoved;
                events.UserTyping -= OnUserTyping;
                events.ChatReceived -= OnChatReceived;
            }
        }
Example #11
0
 void OnUserChanged(object sender, UserEventArgs e)
 {
     UserChanged.SafeInvoke(this, e);
 }
Example #12
0
 void OnUserAdded(object sender, UserEventArgs e)
 {
     participants.Add(new Participant(e.User));
     UserAdded.SafeInvoke(this, e);
 }
 void OnUserRemoved(object sender, UserEventArgs e)
 {
     var member = memberModels.Single(vm => vm.User == e.User);
     memberModels.Remove(member);
     member.Dispose();
 }
 void OnUserAdded(object sender, UserEventArgs e)
 {
     memberModels.Add(new UserViewModel(client, e.User));
 }