Example #1
0
        public PackageForm(DevCenter devCenter, ScriptPackage package)
        {
            InitializeComponent();

            if (package == null)
                throw new ArgumentNullException("Package argument cannot be null.");

            foreach (PackageExportOptions o in Enum.GetValues(typeof(PackageExportOptions)))
            {
                this.exportOptionComboBox.Items.Add(o);
            }

            this.package = package;
            this.devCenter = devCenter;
            this.scriptPackageBindingSource.Add(package);
            this.package.PropertyChanged += new PropertyChangedEventHandler(package_PropertyChanged);
            this.package.RootPath.PropertyChanged += new PropertyChangedEventHandler(RootPath_PropertyChanged);
            this.rootPathBindingSource.Add(package.RootPath);
            this.sourcePathBindingSource.Add(package.SourcePath);
            this.outputPathBindingSource.Add(package.OutputPath);
            this.packageFileBindingSource.Add(package.PackageFile);
            this.manifestFileBindingSource.Add(package.ManifestFile);

            this.setHelpLabelText();
            this.enableControls();
        }
        public InstallerActionsForm(DevCenter devCenter, ScriptPackage package)
        {
            InitializeComponent();

            if (package == null)
                throw new ArgumentNullException("Package argument cannot be null");

            this.package = package;
            this.installerConfig = package.InstallerConfiguration;

            actionsComboBox.Format += new ListControlConvertEventHandler(actionsComboBox_Format);
            actionPropertyGrid.PropertyValueChanged += new PropertyValueChangedEventHandler(actionPropertyGrid_PropertyValueChanged);

            if (package.RootPath.AbsolutePath == String.Empty)
            {
                PackageRootPathWarning w = new PackageRootPathWarning();
                w.Dock = DockStyle.Fill;
                this.Controls.Remove(this.tableLayoutPanel);
                this.Controls.Add(w);
            }
            else
            {
                fillActionsCombobox();
                fillActionsListView();
            }
        }
Example #3
0
        public void setAttribute( DevCenter.SqlPager SqlPager, 
            string strControlToPaginate, string strSelectCommand)
        {
            SqlPager.ControlToPaginate = strControlToPaginate;
			string DBPath = ConfigurationSettings.AppSettings["DataBasePath"];
			SqlPager.ConnectionString = (DBPath); 
            //SqlPager.ConnectionString = ConfigurationSettings.AppSettings["ConnStr"];
            SqlPager.SelectCommand = strSelectCommand;
            SqlPager.ItemsPerPage = 10;
            SqlPager.CurrentPageIndex = 0;
            SqlPager.DataBind();
        }
Example #4
0
        public RepositoryForm(DevCenter devCenter, ScriptRepository repository)
        {
            InitializeComponent();

            if (repository == null)
                throw new ArgumentNullException("Repository argument cannot be null");

            this.repository = repository;

            this.scriptRepositoryBindingSource.Add(repository);

            this.fillScriptsTreeView();
        }
Example #5
0
        public void setAttribute( DevCenter.SqlPager SqlPager, 
            string strControlToPaginate, string strSelectCommand,
            string strSortField, int iItemsPerPage, int iCurrentPageIndex)
        {
            SqlPager.ControlToPaginate = strControlToPaginate;
			string DBPath = ConfigurationSettings.AppSettings["DataBasePath"];
			SqlPager.ConnectionString = (DBPath); 
			//SqlPager.ConnectionString = ConfigurationSettings.AppSettings["ConnStr"];
            SqlPager.SelectCommand = strSelectCommand;
            SqlPager.SortField = strSortField;//只能 ASC
            SqlPager.ItemsPerPage = iItemsPerPage;
            SqlPager.CurrentPageIndex = iCurrentPageIndex;
            SqlPager.DataBind();
        }
Example #6
0
        public InstallerUIForm(DevCenter devCenter, ScriptPackage package)
        {
            InitializeComponent();

            if (package == null)
                throw new ArgumentNullException("Package argument cannot be null.");

            this.package = package;

            if (package.RootPath.AbsolutePath == String.Empty)
            {
                PackageRootPathWarning w = new PackageRootPathWarning();
                w.Dock = DockStyle.Fill;
                this.Controls.Remove(this.tableLayoutPanel);
                this.Controls.Add(w);
            }
        }
Example #7
0
        public ManifestForm(DevCenter devCenter, ScriptManifest manifest)
        {
            InitializeComponent();

            if (manifest == null)
                throw new ArgumentNullException("Manifest cannot be null");

            this.manifest = manifest;

            this.versionPropertyGrid.PropertyValueChanged += versionPropertyGrid_PropertyValueChanged;

            this.scriptManifestBindingSource.Add(manifest);

            this.versionsListView.BeginUpdate();
            foreach (ScriptVersion version in manifest.Versions)
                this.addVersionToListView(version);
            this.versionsListView.EndUpdate();
        }
 public ManifestMetadataForm(DevCenter devCenter, ScriptManifest manifest)
 {
     InitializeComponent();
 }