예제 #1
0
 private void RosterAddNewMessage(RosterAddRequest request)
 {
     FriendRequestWindow requestWindow = new FriendRequestWindow(request.uid, request.ruid, request.rjid, request.message, request.user, request.category_id);
     requestWindow.Show();
 }
 private void ShowAddRosterNewMessage(long rosterId, System.Collections.Generic.List<Message> list)
 {
     Message message = list[0];
     if (message != null)
     {
         RosterAddRequest request = message.MessageObject as RosterAddRequest;
         if (request != null)
         {
             FriendRequestWindow requestWindow = new FriendRequestWindow(request.uid, request.ruid, request.rjid, request.message, request.user, request.category_id);
             requestWindow.Show();
         }
         DataModel.Instance.RemoveMessage(rosterId, MessageActorType.AddRoster);
     }
 }