void ExecuteForm_OnEmbeded(EmbededForm sender) { tVersion.Text = "Executor Version: " + Application.ProductVersion; gDebug.Enabled = Settings.IsAllowDebug; gDebug.Visible = Settings.IsAllowDebug; OutputHandler.Handle("Execute form loaded"); Wizard.UpdateStatus("1010"); Wizard.OnStart -= new WizardForm.OnStartHandler(Wizard_OnStart); Wizard.OnStop -= new WizardForm.OnStartHandler(Wizard_OnStop); Wizard.OnStart += new WizardForm.OnStartHandler(Wizard_OnStart); Wizard.OnStop += new WizardForm.OnStartHandler(Wizard_OnStop); Wizard.BackToFirst = true; ResetEvents(); lvCmd.DataSource = null; lvCmd.AutoGenerateColumns = false; lvCmd.Columns[0].DataPropertyName = "Index"; lvCmd.Columns[0].Width = 50; lvCmd.Columns[2].DataPropertyName = "ExecStatus"; lvCmd.Columns[2].Width = 100; lvCmd.Columns[1].DataPropertyName = "Name"; lvCmd.Columns[1].Width = lvCmd.Width - 200; lvCmd.SelectionMode = DataGridViewSelectionMode.FullRowSelect; cmds.Clear(); InitTabsStatus(); Executor.Instance.Preview(null, PreviewCmdCallback); InitCmdStatus(); lvCmd.DataSource = cmds; }
void ChoosePlanForm_OnEmbeded(EmbededForm sender) { if (!Settings.IsAllowDebug) { if (tabs.TabPages.Contains(tbDetails)) { tabs.TabPages.Remove(tbDetails); } } else { if (!tabs.TabPages.Contains(tbDetails)) { tabs.TabPages.Add(tbDetails); } } isChanged = false; ptPlan.FileDialog.Filter = "Plan Files(*.xml)|*.xml|Plan Backup Files(*.xml.bak)|*.xml.bak|All Files(*.*)|*.*"; OutputHandler.Handle("Choose Plan"); ptPlan.ClearPaths(); if (Settings.Plans.Count > 0) { ptPlan.LoadPaths(Settings.Plans.ToArray()); if (!string.IsNullOrEmpty(Settings.LastPlan)) { ptPlan.StartupPath = Settings.LastPlan; } } PreviewNext(); }
void PlanSettingsForm_OnEmbeded(EmbededForm sender) { OutputHandler.Handle("Plan Settings"); Executor.Instance.Reset(); Executor.Instance.SetVar("PlanSettingsForm", false, this); Executor.Instance.RunOnLoad(); asp.Initialize(); asp.Visible = false; asp.Generate(Executor.Instance.Parameters); asp.Visible = true; if (tabs.TabPages.Contains(tbPartition)) { tabs.TabPages.Remove(tbPartition); } Executor.Instance.RunOnConfig(); Wizard.UpdateStatus("1100"); }