示例#1
0
        private void ResetDepProp()
        {
            if (isToolWin)
            {
                propForm.Hide();
                propForm = null;
                toolWin.Close(vsSaveChanges.vsSaveChangesNo);
                isToolWin          = false;
                propForm.FirstLoad = true;
            }

            _connString = "";
            projPath    = "";
            proc        = null;
        }
示例#2
0
        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);
            }
        }
示例#3
0
        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);
              }
        }
示例#4
0
        private void ResetDepProp()
        {
            if (isToolWin) {
            propForm.Hide();
            propForm = null;
            toolWin.Close(vsSaveChanges.vsSaveChangesNo);
            isToolWin = false;
            propForm.FirstLoad = true;

              }

              _connString = "";
              projPath = "";
              proc = null;
        }