Ejemplo n.º 1
0
 /// <summary>
 /// Refreshes content of the properties window.
 /// </summary>
 protected void RefreshProperties()
 {
     if (TrackSelection != null)
     {
         TrackSelection.OnSelectChange(null);
         TrackSelection.OnSelectChange(SelectionContainer);
     }
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Creates a window pane
        /// </summary>
        /// <returns>Return code</returns>
        int IVsWindowPane.CreatePaneWindow(System.IntPtr hwndParent, int x, int y, int cx, int cy, out System.IntPtr hwnd)
        {
            Win32Methods.SetParent(Handle, hwndParent);
            hwnd = Handle;

            Debug.Assert(TrackSelection != null, "Unable to register in property window!");
            if (TrackSelection != null)
            {
                TrackSelection.OnSelectChange(SelectionContainer);
            }

            Size = new System.Drawing.Size(cx - x, cy - y);

            // Loading configuration settings
            LoadSettings();

            return(VSConstants.S_OK);
        }