예제 #1
0
        private void AutoScripting_Load(object sender, System.EventArgs e)
        {
            if (this.configRow != null)
            {
                this.Show();
                this.config = new AutoScriptingConfig();
                this.config.AutoScripting.AddAutoScriptingRow(false, this.includeFileHeaders, this.deletePreExisting, this.zipScripts);
                this.config.DatabaseScriptConfig.ImportRow(this.configRow);

                StartAutoScripting();
            }
        }
예제 #2
0
        private void Process()
        {
            this.config = new AutoScriptingConfig();
            this.config.ReadXml(this.configFile);
            if (this.config.AutoScripting[0].AllowManualSelection)
            {
                AutoScriptingSelect frmSelect = new AutoScriptingSelect(this.config);
                DialogResult        result    = frmSelect.ShowDialog();
                if (result == DialogResult.OK)
                {
                    this.config = frmSelect.config;
                }
                else
                {
                    return;
                }
            }

            if (this.config.DatabaseScriptConfig.Rows.Count > 0)
            {
                for (int i = 0; i < this.config.DatabaseScriptConfig.Rows.Count; i++)
                {
                    childCount++;
                    AutoScripting frmScr = new AutoScripting(this.config.DatabaseScriptConfig[i], this.config.AutoScripting[0].IncludeFileHeaders, this.config.AutoScripting[0].DeletePreExistingFiles, this.config.AutoScripting[0].ZipScripts);
                    frmScr.ScriptingCompleted += new EventHandler(frmScr_ScriptingCompleted);
                    frmScr.MdiParent           = this;
                    frmScr.Show();
                }
                this.statOverall.Text      = "Scripting";
                this.statRunningCount.Text = String.Format(this.runStatus, 0, this.childCount.ToString());
            }
            else
            {
                frmScr_ScriptingCompleted(null, EventArgs.Empty);
            }
        }
예제 #3
0
 public AutoScriptingSelect(AutoScriptingConfig config)
 {
     InitializeComponent();
     this.config = config;
 }