SIL.FieldWorks.Common.Controls.Persistence.OnLoadSettings C# (CSharp) Method

OnLoadSettings() private method

Tasks needing to be done when Window is being created: Load window position. Load settings.
private OnLoadSettings ( object obj, System e ) : void
obj object
e System
return void
		private void OnLoadSettings(object obj, System.EventArgs e)
		{
			if (!GlobalDesignMode && obj is Control && !((Control)obj).Disposing)
			{
				if (m_fInInit)
					m_fLoadSettingsPending = true;
				else
				{
					Parent.SuspendLayout();

					if (m_normalWidth > 0 && m_normalHeight > 0)
						Parent.Size = new Size(m_normalWidth, m_normalHeight);

					if (LoadSettings != null)
						LoadSettings(SettingsKey);

					Parent.ResumeLayout();
				}
			}
		}