示例#1
0
        public static void FindClones(CloneClass cloneClass)
        {
            CloneResultsControl cloneResultsControl = VSPackage.Instance.GetToolWindowUserControl <CloneResultsToolWindow, CloneResultsControl>();

            cloneResultsControl.Add(cloneClass);
            VSPackage.Instance.ShowToolWindow <CloneResultsToolWindow>();
        }
        /// <summary>
        /// Standard constructor for the tool window.
        /// </summary>
        public CloneResultsToolWindow()
            : base(null)
        {
            // Set the window title reading it from the resources.
            Caption = Res.CloneResultsToolWindowTitle;

            // Set the image that will appear on the tab of the window frame
            // when docked with an other window.
            // The resource ID corresponds to the one defined in the resx file
            // while the Index is the offset in the bitmap strip. Each image in
            // the strip being 16x16.
            BitmapResourceID = 301;
            BitmapIndex      = 2;

            _control = new CloneResultsControl();
        }