SIL.FieldWorks.FwCoreDlgs.DummyWritingSystemPropertiesDialog.CallShowDialog C# (CSharp) Method

CallShowDialog() protected method

simulate choosing settings with those specified in SelectEthnologueCodeDlg().
protected CallShowDialog ( SIL.FieldWorks.FwCoreDlgs.LanguageSelectionDlg dlg ) : DialogResult
dlg SIL.FieldWorks.FwCoreDlgs.LanguageSelectionDlg
return DialogResult
		protected override DialogResult CallShowDialog(LanguageSelectionDlg dlg)
		{
			if (m_ethnologueDlgResultToEnforce == DialogResult.OK)
			{
				// overwrite
				dlg.LanguageName = m_selectedLanguageName;
				dlg.EthnologueCode = m_selectedEthnologueCode;
			}
			return DialogResult = m_ethnologueDlgResultToEnforce;
		}

Usage Example

Ejemplo n.º 1
0
		public void Init()
		{
			StringUtils.InitIcuDataDir();
			m_inMemoryCache = InMemoryFdoCache.CreateInMemoryFdoCache();
			m_inMemoryCache.InitializeLangProject();
			m_inMemoryCache.Cache.LanguageWritingSystemFactoryAccessor.BypassInstall = true;
			m_inMemoryCache.InitializeWritingSystemEncodings();

			m_dlgWsProps = new DummyWritingSystemPropertiesDialog(m_inMemoryCache.Cache);

			// "show" the dialog box (the actually gui will never be loaded)
			// When in test mode the dialog will not call its base ShowDialog
			m_dlgWsProps.CallShowDialog();
		}
All Usage Examples Of SIL.FieldWorks.FwCoreDlgs.DummyWritingSystemPropertiesDialog::CallShowDialog