public PropertiesForm(string projPath, string execPath)
        {
            if (projPath == "") {
            dpType = DeployTypeEnum.Assembly;

              }

              else {
            sqlProjFile = Path.Combine(projPath, "sql.proj");
            vsProjPath = projPath;
              }
              appPath = execPath;
              InitializeComponent();

              SetEventHooks();
              SetUpHelp();
              SetControlState();
              LoadDocs();
              if (dpType == DeployTypeEnum.Assembly) {
            menuStrip1.Visible = true;
            SetupMenus();
            SetUpMenuEvents();

              }
              else
            menuStrip1.Visible = false;

              //make sure we are set to normal
              this.AutoScroll = true;

              binPath = System.Runtime.InteropServices.RuntimeEnvironment.GetRuntimeDirectory();
              isDirty = false;
        }
Example #2
0
 internal void Init(string projPath)
 {
     vsProjPath = projPath;
     if (vsProjPath == string.Empty)
     {
         dpType = DeployTypeEnum.Assembly;
     }
     else
     {
         dpType      = DeployTypeEnum.Project;
         sqlProjFile = Path.Combine(vsProjPath, "sql.proj");
     }
 }
Example #3
0
        public PropertiesForm(string projPath, string execPath)
        {
            if (projPath == "")
            {
                dpType = DeployTypeEnum.Assembly;
            }

            else
            {
                sqlProjFile = Path.Combine(projPath, "sql.proj");
                vsProjPath  = projPath;
            }
            appPath = execPath;
            InitializeComponent();

            SetEventHooks();
            SetUpHelp();
            SetControlState();
            LoadDocs();
            if (dpType == DeployTypeEnum.Assembly)
            {
                menuStrip1.Visible = true;
                SetupMenus();
                SetUpMenuEvents();
            }
            else
            {
                menuStrip1.Visible = false;
            }

            //make sure we are set to normal
            this.AutoScroll = true;


            binPath = System.Runtime.InteropServices.RuntimeEnvironment.GetRuntimeDirectory();
            isDirty = false;
        }
Example #4
0
        internal void Init(string projPath)
        {
            vsProjPath = projPath;
              if (vsProjPath == string.Empty) {
            dpType = DeployTypeEnum.Assembly;

              }
              else {
            dpType = DeployTypeEnum.Project;
            sqlProjFile = Path.Combine(vsProjPath, "sql.proj");

              }
        }