Example #1
0
            /// <summary>
            /// Update this roster item with new presence information
            /// </summary>
            /// <param name="p"></param>
            public void ChangePresence(Presence p)
            {
                this.SelectedImageIndex = this.ImageIndex = ItemNode.GetPresenceImage(p);

                if (p == null || String.IsNullOrEmpty(p.Status))
                {
                    this.Status = null;
                }
                else
                {
                    this.Status = p.Status;
                }
            }