コード例 #1
0
ファイル: SpellingFixerEC.cs プロジェクト: sillsdev/WorldPad
		public SpellingFixerEC(string strProjectName)
		{
			LoginSF login = new LoginSF();
			if (login.LoadProject(strProjectName))
			{
				m_font = login.FontToUse;
				m_bLegacy = login.IsLegacy;
				if (m_bLegacy)
					m_cp = login.CpToUse;
				m_strConverterSpec = login.ConverterSpec;
				SpellFixerEncConverterName = login.EncConverterName;
				WordBoundaryDelimiter = login.WordBoundaryDelimiter;
				PunctuationAndWhiteSpace = login.Punctuation;
			}
			else
				throw new ExternalException("No project selected");
		}
コード例 #2
0
ファイル: SpellingFixerEC.cs プロジェクト: sillsdev/WorldPad
		/// <summary>
		/// If you use the default ctor, and want to log into a SpellFixer project (as opposed to CscProject)
		/// then use this method.
		/// </summary>
		public void LoginProject()
		{
			LoginSF login = new LoginSF();
			if (login.ShowDialog() == DialogResult.OK)
			{
				m_font = login.FontToUse;
				m_bLegacy = login.IsLegacy;
				if (m_bLegacy)
					m_cp = login.CpToUse;
				m_strConverterSpec = login.ConverterSpec;
				SpellFixerEncConverterName = login.EncConverterName;
				WordBoundaryDelimiter = login.WordBoundaryDelimiter;
				PunctuationAndWhiteSpace = login.Punctuation;
			}
			else
				throw new ExternalException("No project selected");
		}