private void commandRowProperties_Execute(object sender, EventArgs e) { using (RowPropertiesForm rowPropertiesForm = new RowPropertiesForm(TableEditor.GetRowProperties(_editorContext))) { if (rowPropertiesForm.ShowDialog(_editorContext.MainFrameWindow) == DialogResult.OK) { TableEditor.SetRowProperties(_editorContext, rowPropertiesForm.RowProperties); } } }