// "state" parameter is the object returned from MyPackage.InitializeToolWindowAsync public SampleToolWindow(SampleToolWindowState state) : base() { Caption = Title; BitmapImageMoniker = KnownMonikers.ImageIcon; Content = new SampleToolWindowControl(state); }
public SampleToolWindowControl(SampleToolWindowState state) { _state = state; InitializeComponent(); }