private void CreateToolWindow()
{
if (_toolWindow != null)
{
_toolWindow.Activate();
}
else
{
object programmableObject = null;
_toolWindow = ((Windows2)_application.Windows).CreateToolWindow2(
_addIn, typeof(ToolWindowControl).Assembly.Location, typeof(ToolWindowControl).FullName, "TargetProcess Window",
"{A523C4AD-EA9B-4944-94AB-41313992B2EE}", ref programmableObject);
_toolWindow.SetTabPicture(ConvertImage.Convert(Resources.Icon));
var toolWindowControl = (ToolWindowControl)programmableObject;
toolWindowControl.Init(_application, _controller, _env);
_toolWindow.Visible = true;
}
}