Example #1
0
        private void InitializeInformationsWizard()
        {
            Logger.EnteringMethod(Revising.ToString());
            if (Revising)
            {
                updateInformationsWizard.Controls["btnPrevious"].Enabled = false;
            }
            splitContainer1.Panel2.Controls.Clear();
            txtBxDescription.Text = resManager.GetString("DescriptionInformationsWizard");

            updateInformationsWizard.Dock = DockStyle.None;
            splitContainer1.Panel2.Controls.Add(updateInformationsWizard);
            if (CreatingSupersedingUpdate)
            {
                updateInformationsWizard.CopyInformations(this.Sdp);
            }
            updateInformationsWizard.Show();
            this.Size = new System.Drawing.Size(updateInformationsWizard.Width + 20, txtBxDescription.Height + updateInformationsWizard.Height + 2 * SystemInformation.CaptionHeight);
            updateInformationsWizard.Dock = DockStyle.Fill;
            if (CustomUpdate)
            {
                string filename = ActionsFilePath.Substring(ActionsFilePath.LastIndexOf('\\') + 1);
                updateInformationsWizard.CommandLine = @"\actionfile=" + filename;
            }
            updateInformationsWizard.Select();
        }