public void SetMetadata(MetadataInfo metadataInfo)
        {
            DebugHelper.AssertUIThread();

            if (this.viewContent == null)
            {
                this.metadataInfo = metadataInfo;
            }
            else
            {
                this.viewContent.MetadataInfo = metadataInfo;
            }
        }
        private void SetDefaultMetadataViews(MetadataInfo metadata)
        {
            DebugHelper.AssertUIThread();

            if ((metadata != null) && (this.metadataViewService != null))
            {
                foreach (Window window in App.Current.Windows)
                {
                    if (window is ToolsUIWindow)
                    {
                        IEnumerable<MetadataView> metadataViews = metadataViewService.GetMetadataViews(window);
                        if (metadataViews.Count() > 0)
                        {
                            bool setIt = true;

                            foreach (MetadataView metadataView in metadataViews)
                            {
                                if (metadataView == null)
                                {
                                    setIt = true;
                                }
                                else if (setIt)
                                {
                                    metadataView.SetMetadata(metadata);
                                    setIt = false;
                                }
                            }
                        }
                    }
                }
            }
        }
        private void ShowMetadata(MetadataView view, MetadataInfo metadataInfo)
        {
            DebugHelper.AssertUIThread();

            this.IsFileTabOpen = false;

            if ((metadataInfo != null) && (view != null))
            {
                MetadataViewContent viewContent = view.ViewContent as MetadataViewContent;
                if (viewContent != null)
                {
                    using (WaitCursor waitCursor = new WaitCursor(this))
                    {
                        viewContent.MetadataInfo = metadataInfo;
                    }
                }
            }
        }