/// <summary> /// 移除单元格编辑器。 /// </summary> private void RemoveEditor() { IsEditing = false; if (_editor != null) { _editor.Hide(); _treelist.Focus(); _treelist.Controls.Remove((Control)_editor); } _editor = null; }
/// <summary> /// 移除单元格编辑器。 /// </summary> private void RemoveEditor() { var control = (Control)editor; IsEditing = false; treelist.Focus(); treelist.Controls.Remove(control); if (editor != null) { editor.Hide(); } editor = null; }