예제 #1
0
        private void OnContextMenuPreviewContent(object sender, EventArgs e)
        {
            IVsHierarchy hierarchy;
            string       fileName;
            uint         itemID;

            if (GetSelectedFileDetails(sender as OleMenuCommand, out hierarchy, out itemID, out fileName))
            {
                IContentPreviewService previewService = _package.GetService <IContentPreviewService>();
                previewService.ShowPreview(hierarchy, itemID, fileName);
            }
        }
예제 #2
0
        private void OnShowToolWindow(object sender, EventArgs e)
        {
            IContentPreviewService previewService = _package.GetService <IContentPreviewService>();

            previewService.ShowPreview();
        }