private void commandCellProperties_Execute(object sender, EventArgs e) { using (CellPropertiesForm cellPropertiesForm = new CellPropertiesForm(TableEditor.GetCellProperties(_editorContext))) { if (cellPropertiesForm.ShowDialog(_editorContext.MainFrameWindow) == DialogResult.OK) { TableEditor.SetCellProperties(_editorContext, cellPropertiesForm.CellProperties); } } }