Exemple #1
0
        void ic_ContactStatusChanged(object sender, IMPPClient.ContactStatusEventArgs e)
        {
            Action a = new Action(() =>
            {
            });

            if (Dispatcher == null)
            {
                a();
            }
            else
            {
                Dispatcher.BeginInvoke(a);
            }
        }
Exemple #2
0
        void si_ContactStatusChanged(object sender, IMPPClient.ContactStatusEventArgs e)
        {
            foreach (ListViewItem i in contactList.Items)
            {
                if ((string)i.Tag == e.Username)
                {
                    i.Text = e.Nick + " - " + e.StatusMessage;
                    switch (e.Status)
                    {
                    case 1:
                        i.BackColor = Color.Green;
                        break;

                    case 2:
                        i.BackColor = Color.Gray;
                        break;
                    }
                }
            }
        }
Exemple #3
0
 void ic_ContactStatusChanged(object sender, IMPPClient.ContactStatusEventArgs e)
 {
     this.Dispatcher.RunAsync(CoreDispatcherPriority.Normal, () =>
     {
     });
 }