示例#1
0
        protected override void LoadSelectionDetails()
        {
            // Only load details if a content row is selected
            if (ContentsGrid.SelectedRows.Count == 0)
            {
                return;
            }

            PropertyDetailsGrid.Clear();
            NameResolution nr = (NameResolution)ContentsGrid.SelectedRows[0].Tag;

            if (nr == null)
            {
                return;
            }

            try
            {
                Cursor = Cursors.WaitCursor;

                if (nr.Contact != null)
                {
                    PropertyDetailsGrid.LoadObject(nr.Contact);
                }
                else if (nr.Mailbox.Id != null)
                {
                    Item details = Item.Bind(CurrentService, nr.Mailbox.Id, CurrentDetailPropertySet);
                    PropertyDetailsGrid.LoadObject(details);
                }
            }
            finally
            {
                Cursor = Cursors.Default;
            }
        }
        protected override void LoadSelectionDetails()
        {
            // Only load details if a content row is selected
            if (ContentsGrid.SelectedRows.Count == 0)
            {
                return;
            }

            PropertyDetailsGrid.Clear();
            var res = (AutodiscoverResult)ContentsGrid.SelectedRows[0].Tag;

            if (res == null)
            {
                return;
            }

            PropertyDetailsGrid.LoadObject(res.Response);
        }