/// <inheritdoc /> protected override void OnParentChanged(EventArgs e) { base.OnParentChanged(e); ToolWindowContainer toolWindowContainer = Parent as ToolWindowContainer; if (toolWindowContainer != null) { toolWindowPane = toolWindowContainer.ToolWindowPane; } else { toolWindowPane = null; } }
/// <inheritdoc /> protected override void OnParentChanged(EventArgs e) { base.OnParentChanged(e); ToolWindowContainer toolWindowContainer = Parent as ToolWindowContainer; if (toolWindowContainer != null) { toolWindowPane = toolWindowContainer.ToolWindowPane; } else { toolWindowPane = null; } }
/// <summary> /// Creates a container for a tool window. /// </summary> /// <param name="toolWindowPane">The tool window pane.</param> /// <exception cref="ArgumentNullException">Thrown if <paramref name="toolWindowPane"/> is null.</exception> public ToolWindowContainer(IToolWindowPane toolWindowPane) { this.toolWindowPane = toolWindowPane; InitializeComponent(); }
/// <summary> /// Creates a container for a tool window. /// </summary> /// <param name="toolWindowPane">The tool window pane.</param> /// <exception cref="ArgumentNullException">Thrown if <paramref name="toolWindowPane"/> is null.</exception> public ToolWindowContainer(IToolWindowPane toolWindowPane) { this.toolWindowPane = toolWindowPane; InitializeComponent(); }