Exemple #1
0
        /// <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_dsmStateManager">The install state manager.</param>
        /// <param name="p_lstInstallSteps">The install steps.</param>
        public OptionsForm(XmlConfiguredScript p_xcsScript, HeaderInfo p_hifHeaderInfo,
                           DependencyStateManager p_dsmStateManager, IList <InstallStep> p_lstInstallSteps)
        {
            InitializeComponent();
            hplTitle.Text         = p_hifHeaderInfo.Title;
            hplTitle.Image        = p_hifHeaderInfo.ShowImage ? p_hifHeaderInfo.Image : 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 (var stpStep in p_lstInstallSteps)
            {
                var ofsStep = new OptionFormStep(p_dsmStateManager, stpStep.GroupedPlugins);
                ofsStep.Dock         = DockStyle.Fill;
                ofsStep.Visible      = false;
                ofsStep.ItemChecked += ofsStep_ItemChecked;
                pnlWizardSteps.Controls.Add(ofsStep);
                m_lstInstallSteps.Add(new KeyValuePair <InstallStep, OptionFormStep>(stpStep, ofsStep));
            }
            m_intCurrentStep = -1;
            StepForward();
        }
Exemple #2
0
        /// <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_dsmStateManager">The install state manager.</param>
        /// <param name="p_lstInstallSteps">The install steps.</param>
        public OptionsForm(XmlConfiguredScript p_xcsScript, HeaderInfo p_hifHeaderInfo, DependencyStateManager p_dsmStateManager, IList<InstallStep> p_lstInstallSteps)
        {
            m_xcsScript = p_xcsScript;
            m_dsmStateManager = p_dsmStateManager;
            InitializeComponent();
            hplTitle.Text = p_hifHeaderInfo.Title;
            hplTitle.Image = p_hifHeaderInfo.ShowImage ? p_hifHeaderInfo.Image : 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_dsmStateManager, stpStep.GroupedPlugins);
                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();
        }