Example #1
0
 protected virtual void OnGetWhatsUpCompleted(object sender, GetWhatsUpCompletedEventArgs e)
 {
     if (GetWhatsUpCompleted != null)
     {
         GetWhatsUpCompleted(sender, e);
     }
 }
Example #2
0
        void WhatsUpService_GetWhatsUpCompleted(object sender, GetWhatsUpCompletedEventArgs e)
        {
            if (InvokeRequired)
            {
                BeginInvoke(new EventHandler<GetWhatsUpCompletedEventArgs>(WhatsUpService_GetWhatsUpCompleted), new object[] { sender, e });
                return;
            }

            if (e.Error != null)
            {
                lblNews.Text = "ERROR: " + e.Error.ToString();
            }
            else
            {
                activities.Clear();

                foreach (ActivityDetailsType activityDetails in e.Response.Activities)
                {
                    // Show status news
                    if (activityDetails.ApplicationId == "6262816084389410")
                    {
                        activities.Add(activityDetails);
                    }

                    Contact c = messenger.ContactList.GetContactByCID(long.Parse(activityDetails.OwnerCID));

                    if (c != null)
                    {
                        c.Activities.Add(activityDetails);
                    }
                }

                if (activities.Count == 0)
                {
                    lblNews.Text = "No news";
                    return;
                }

                lblNewsLink.Text = "Get Feeds";
                lblNewsLink.Tag = e.Response.FeedUrl;

                ShowNextNews();
            }
        }
Example #3
0
 void WhatsUpService_GetWhatsUpCompleted(object sender, GetWhatsUpCompletedEventArgs e)
 {
     throw new NotImplementedException();
 }
Example #4
0
 protected virtual void OnGetWhatsUpCompleted(object sender, GetWhatsUpCompletedEventArgs e)
 {
     if (GetWhatsUpCompleted != null)
     {
         GetWhatsUpCompleted(sender, e);
     }
 }