SIL.FieldWorks.TE.ImportWizard.OnLoad C# (CSharp) Method

OnLoad() protected method

protected OnLoad ( EventArgs e ) : void
e System.EventArgs
return void
		protected override void OnLoad(EventArgs e)
		{
			base.OnLoad(e);

			if (DesignMode)
				return;

			lblOverview.Text =
				string.Format(ScrImportComponents.kstidImportWizOverview,
				m_LangProjName);

			lblFinish.Text =
				string.Format(ScrImportComponents.kstidImportWizFinish,
				m_LangProjName);

			m_nextText =
				ResourceHelper.GetResourceString("kstidWizForwardButtonText");
			m_finishText =
				ResourceHelper.GetResourceString("kstidWizFinishButtonText");
			m_stepIndicatorFormat =
				ResourceHelper.GetResourceString("kstidWizStepLabel");

			// Restore Dialog Window settings.
			RestoreWindowsSettings();

			// Set the panel locations
			panStep1.Location = panStep0.Location;
			panStep2_PT.Location = panStep0.Location;
			panStep2_Other.Location = panStep0.Location;
			panStep3.Location = panStep0.Location;
			panStep4.Location = panStep0.Location;

			// Set the panel sizes
			int width = ClientRectangle.Right - 8 - panStep0.Left;
			panStep0.Size = new Size(width, stepsPanel.Height - lblSteps.Height);
			panStep1.Size = panStep0.Size;
			panStep2_PT.Size = panStep0.Size;
			panStep2_Other.Size = panStep0.Size;
			panStep3.Size = panStep0.Size;
			panStep4.Size = panStep0.Size;

			// Set the anchor for each panel
			panStep0.Anchor = AnchorStyles.Top | AnchorStyles.Bottom |
				AnchorStyles.Left | AnchorStyles.Right;
			panStep1.Anchor = panStep0.Anchor;
			panStep2_PT.Anchor = panStep0.Anchor;
			panStep2_Other.Anchor = panStep0.Anchor;
			panStep3.Anchor = panStep0.Anchor;
			panStep4.Anchor = panStep0.Anchor;

			// Turn off the border for the panels
			panStep0.BorderStyle = BorderStyle.None;
			panStep1.BorderStyle = BorderStyle.None;
			panStep2_PT.BorderStyle = BorderStyle.None;
			panStep2_Other.BorderStyle = BorderStyle.None;
			panStep3.BorderStyle = BorderStyle.None;
			panStep4.BorderStyle = BorderStyle.None;

			// Store the string id for the step's help topic.
			panStep0.Tag = "khtpSFMWizardStep1";
			panStep1.Tag = "khtpSFMWizardStep2";
			panStep2_PT.Tag = "khtpSFMWizardStep3para";
			panStep2_Other.Tag = "khtpSFMWizardStep3list";
			panStep3.Tag = "khtpSFMWizardStep4Map";
			panStep4.Tag = "khtpSFMWizardStep5";

			panSteps[m_currentStep].Visible = true;
			UpdateStepLabel();

			m_lvCurrentMappingList = lvScrMappings;
			m_btnCurrentModifyButton = m_btnModifyScrMapping;
			m_btnCurrentDeleteButton = m_btnDeleteScrMapping;
			m_btnCurrentAddButton = m_btnAddScrMapping;
			cboShowMappings.SelectedIndex = 1;
		}