void EndEditing() { if (editSession != null) { bool cancel = editSession.CancelChanges; Remove(currentEditor); currentEditor.Destroy(); currentEditor = null; if (editSession != null) { editSession.Dispose(); } editSession = null; currentEditorRow = null; if (!cancel) { SetSelection(null); } QueueDraw(); if (EndedEdit != null) { EndedEdit.Invoke(this, new PropertyGrid.EndedEditEventArgs { Canceled = cancel }); } } }
void EndEditing() { if (editSession != null) { Remove(currentEditor); currentEditor.Destroy(); editSession.Dispose(); editSession = null; currentEditorRow = null; QueueDraw(); } }
internal void EndEditing() { if (editSession != null) { Remove(currentEditor); currentEditor.Destroy(); currentEditor = null; editSession.Dispose(); editSession = null; currentEditorRow = null; parentGrid.Populate(saveEditSession: false); QueueDraw(); } }
protected override void OnParentSet(Gtk.Widget parent) { base.OnParentSet(parent); if (Parent != null) { if (this.ParentWindow != null) { box.ParentWindow = this.ParentWindow; } box.Parent = Parent; box.Show(); ((InternalTree)Parent).Editing = true; } else { session.Dispose(); ((InternalTree)parent).Editing = false; if (box.Parent != null && box.Parent.IsRealized) { box.Unparent(); } } }