private void SetTextBoxValue(ITsString tss, FwTextBox textBox, ComboBox comboBox, bool vern)
{
if (tss != null)
{
int ws = tss.get_WritingSystemAt(0);
comboBox.SelectedItem = m_cache.ServiceLocator.WritingSystemManager.Get(ws);
textBox.Tss = tss;
}
else
{
comboBox.SelectedItem = vern ? m_cache.ServiceLocator.WritingSystems.DefaultVernacularWritingSystem
: m_cache.ServiceLocator.WritingSystems.DefaultAnalysisWritingSystem;
}
}