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

            IsEditing = false;
            treelist.Focus();
            treelist.Controls.Remove(control);
            if (editor != null)
            {
                editor.Hide();
            }
            editor = null;
        }