protected override void OnBeforeCommitObject() { base.OnBeforeCommitObject(); Current.Name = textWordTypeName.Text; Current.Special = comboSpecial.SelectedIndex != -1 ? (grammatical)comboSpecial.SelectedIndex : grammatical.none;; foreach (DataGridViewRow row in gridShortNames.Rows) { Current.AddAbbreviation((Abbreviation)row.Cells["ColumnShortName"].Value); } }