SIL.FieldWorks.IText.ConcordanceControl.LoadSettings C# (CSharp) Method

LoadSettings() private method

private LoadSettings ( ) : void
return void
		private void LoadSettings()
		{
			string sLine = m_mediator.PropertyTable.GetStringProperty("ConcordanceLine", "kBaseline",
						 PropertyTable.SettingsGroup.LocalSettings);
			ConcordanceLines line;
			try
			{
				line = (ConcordanceLines)Enum.Parse(typeof(ConcordanceLines), sLine);
			}
			catch
			{
				line = ConcordanceLines.kBaseline;
			}
			SetConcordanceLine(line);

			string sWs = m_mediator.PropertyTable.GetStringProperty("ConcordanceWs", null,
				PropertyTable.SettingsGroup.LocalSettings);
			int ws = 0;
			if (sWs != null)
			{
				ws = m_cache.LanguageWritingSystemFactoryAccessor.GetWsFromStr(sWs);
				if (ws != 0)	// could be obsolete data.
					SetWritingSystem(ws);
			}
			ws = CurrentSelectedWs();
			m_tbSearchText.WritingSystemCode = ws;

			string sText = m_mediator.PropertyTable.GetStringProperty("ConcordanceText", null,
				PropertyTable.SettingsGroup.LocalSettings);
			if (sText != null)
				m_tbSearchText.Text = sText;

			bool fMatchCase = m_mediator.PropertyTable.GetBoolProperty("ConcordanceMatchCase",
				m_chkMatchCase.Checked, PropertyTable.SettingsGroup.LocalSettings);
			m_chkMatchCase.Checked = fMatchCase;

			bool fMatchDiacritics = m_mediator.PropertyTable.GetBoolProperty("ConcordanceMatchDiacritics",
				m_chkMatchDiacritics.Checked, PropertyTable.SettingsGroup.LocalSettings);
			m_chkMatchDiacritics.Checked = fMatchDiacritics;

			string sConcordanceOption = m_mediator.PropertyTable.GetStringProperty("ConcordanceOption",
				null, PropertyTable.SettingsGroup.LocalSettings);
			SetConcordanceOption(sConcordanceOption);
		}