private void ResetDepProp() { if (isToolWin) { propForm.Hide(); propForm = null; toolWin.Close(vsSaveChanges.vsSaveChangesNo); isToolWin = false; propForm.FirstLoad = true; } _connString = ""; projPath = ""; proc = null; }
private void ShowDeploymentProperties() { string guidStr = "{426E8D27-3D33-4fc8-B3E9-9883AADC679F}"; object objTemp = null; string projPath = ProjectPath; string execAsm = Assembly.GetExecutingAssembly().Location; Windows2 wins = (Windows2)_app.Windows; try { if (!isToolWin) { toolWin = (Window2)wins.CreateToolWindow2(_addIn, execAsm, "DeployAddIn.DepProp", "Deployment Properties", guidStr, ref objTemp); toolWin.IsFloating = false; toolWin.Linkable = false; propForm = (DepProp)objTemp; propForm.AutoScroll = true; //propForm.Init(projPath); isToolWin = true; } propForm.Init(ProjectPath); if (wins == null) { toolWin.Visible = true; } //toolWin.Activate(); toolWin.Visible = true; } catch (Exception e) { MessageBox.Show(e.Message); } }
private void ShowDeploymentProperties() { string guidStr = "{426E8D27-3D33-4fc8-B3E9-9883AADC679F}"; object objTemp = null; string projPath = ProjectPath; string execAsm = Assembly.GetExecutingAssembly().Location; Windows2 wins = (Windows2)_app.Windows; try { if (!isToolWin) { toolWin = (Window2)wins.CreateToolWindow2(_addIn, execAsm, "DeployAddIn.DepProp", "Deployment Properties", guidStr, ref objTemp); toolWin.IsFloating = false; toolWin.Linkable = false; propForm = (DepProp)objTemp; propForm.AutoScroll = true; //propForm.Init(projPath); isToolWin = true; } propForm.Init(ProjectPath); if (wins == null) toolWin.Visible = true; //toolWin.Activate(); toolWin.Visible = true; } catch (Exception e) { MessageBox.Show(e.Message); } }