private void m_btnOK_Click(object sender, EventArgs e)
{
m_node.Form = string.IsNullOrEmpty(m_formTextBox.Text) ? null : m_formTextBox.Tss;
m_node.Gloss = string.IsNullOrEmpty(m_glossTextBox.Text) ? null : m_glossTextBox.Tss;
m_inflModel.AddInflFeatures(m_node.InflFeatures);
var node = (HvoTreeNode) m_categoryComboBox.SelectedNode;
if (node.Hvo != 0)
{
m_node.Category = m_cache.ServiceLocator.GetInstance<IPartOfSpeechRepository>().GetObject(node.Hvo);
m_node.NegateCategory = m_categoryNotCheckBox.Checked;
}
else
{
m_node.Category = null;
m_node.NegateCategory = false;
}
DialogResult = DialogResult.OK;
}