protected CallShowDialog ( SIL.FieldWorks.FwCoreDlgs.LanguageSelectionDlg dlg ) : DialogResult | ||
dlg | SIL.FieldWorks.FwCoreDlgs.LanguageSelectionDlg | |
Результат | 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;
}
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(); }