Exemplo n.º 1
0
        void UpdatePollBuddy(IRTCBuddy2 buddy2)
        {
            Trace.WriteLine("Entering RTCPresence.UpdatePollBuddy");

            if (this.pollDialog == null)
            {
                return;
            }

            if (buddy2 == null)
            {
                Trace.WriteLine("NULL Buddy Object");
                return;
            }

            try
            {
                if (buddy2.PresentityURI != this.pollDialog.Uri &&
                    buddy2.PresentityURI != ("sip:" + pollDialog.Uri))
                {
                    Trace.WriteLine("Not Current Poll URI");
                    return;
                }

                this.pollDialog.Properties = RTCHelp.GetBuddyProperties(buddy2);
            }
            catch (COMException)
            {
            }
        }
Exemplo n.º 2
0
        void propertiesMenuItem_Click(object sender, System.EventArgs e)
        {
            Trace.WriteLine("Entering RTCPresence.propertiesMenuItem_Click");

            RTCTreeNode node   = (RTCTreeNode)(this.buddyTree.SelectedNode);
            IRTCBuddy2  buddy2 = (IRTCBuddy2)(node.Entity);

            this.ShowMessage(RTCHelp.GetBuddyProperties(buddy2), "Buddy Properties");
        }