예제 #1
0
		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
		/// <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");
		}