/// <summary> /// A simple constructor that initializes the object with the given values. /// </summary> /// <param name="p_xcsScript">The install script.</param> /// <param name="p_hifHeaderInfo">Information describing the form header.</param> /// <param name="p_csmStateManager">The install state manager.</param> /// <param name="p_lstInstallSteps">The install steps.</param> public OptionsForm(XmlScript p_xcsScript, HeaderInfo p_hifHeaderInfo, ConditionStateManager p_csmStateManager, IList<InstallStep> p_lstInstallSteps) { m_xcsScript = p_xcsScript; m_csmStateManager = p_csmStateManager; InitializeComponent(); hplTitle.Text = p_hifHeaderInfo.Title; hplTitle.Image = p_hifHeaderInfo.ShowImage ? p_csmStateManager.GetImage(p_hifHeaderInfo.ImagePath) : null; hplTitle.ShowFade = p_hifHeaderInfo.ShowFade; hplTitle.ForeColor = p_hifHeaderInfo.TextColour; hplTitle.TextPosition = p_hifHeaderInfo.TextPosition; if (p_hifHeaderInfo.Height > hplTitle.Height) hplTitle.Height = p_hifHeaderInfo.Height; foreach (InstallStep stpStep in p_lstInstallSteps) { OptionFormStep ofsStep = new OptionFormStep(m_csmStateManager, stpStep.OptionGroups); ofsStep.Dock = DockStyle.Fill; ofsStep.Visible = false; ofsStep.ItemChecked += new EventHandler(ofsStep_ItemChecked); pnlWizardSteps.Controls.Add(ofsStep); m_lstInstallSteps.Add(new KeyValuePair<InstallStep, OptionFormStep>(stpStep, ofsStep)); } m_intCurrentStep = -1; StepForward(); }
/// <summary> /// A simple constructor that initializes the object with the given values. /// </summary> /// <param name="p_xcsScript">The install script.</param> /// <param name="p_hifHeaderInfo">Information describing the form header.</param> /// <param name="p_csmStateManager">The install state manager.</param> /// <param name="p_lstInstallSteps">The install steps.</param> public OptionsForm(XmlScript p_xcsScript, HeaderInfo p_hifHeaderInfo, ConditionStateManager p_csmStateManager, IList <InstallStep> p_lstInstallSteps) { m_xcsScript = p_xcsScript; m_csmStateManager = p_csmStateManager; InitializeComponent(); hplTitle.Text = p_hifHeaderInfo.Title; hplTitle.Image = p_hifHeaderInfo.ShowImage ? p_csmStateManager.GetImage(p_hifHeaderInfo.ImagePath) : null; hplTitle.ShowFade = p_hifHeaderInfo.ShowFade; hplTitle.ForeColor = p_hifHeaderInfo.TextColour; hplTitle.TextPosition = p_hifHeaderInfo.TextPosition; if (p_hifHeaderInfo.Height > hplTitle.Height) { hplTitle.Height = p_hifHeaderInfo.Height; } foreach (InstallStep stpStep in p_lstInstallSteps) { OptionFormStep ofsStep = new OptionFormStep(m_csmStateManager, stpStep.OptionGroups); ofsStep.Dock = DockStyle.Fill; ofsStep.Visible = false; ofsStep.ItemChecked += new EventHandler(ofsStep_ItemChecked); pnlWizardSteps.Controls.Add(ofsStep); m_lstInstallSteps.Add(new KeyValuePair <InstallStep, OptionFormStep>(stpStep, ofsStep)); } m_intCurrentStep = -1; StepForward(); }