Пример #1
0
        void addcontactMenuItem_Click(object sender, System.EventArgs e)
        {
            Trace.WriteLine("Entering RTCPresence.addcontactMenuItem_Click");

            string uri = null;

            AddressDialog dlg = new AddressDialog("Add Contact");

            if (dlg.ShowDialog() == DialogResult.OK)
            {
                uri = dlg.Uri;
                this.presenceCore.DoAddBuddy(uri);
            }
            else
            {
                Trace.WriteLine("Add Contact canceled");
            }
        }
Пример #2
0
        void addcontactMenuItem_Click(object sender, System.EventArgs e)
        {
            Trace.WriteLine("Entering RTCPresence.addcontactMenuItem_Click");

            string uri = null;

            AddressDialog dlg = new AddressDialog("Add Contact");

            if (dlg.ShowDialog() == DialogResult.OK )
            {
                uri = dlg.Uri;
                this.presenceCore.DoAddBuddy(uri);
            }
            else
            {
                Trace.WriteLine("Add Contact canceled");
            }
        }