Ejemplo n.º 1
0
        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
                    });
                }
            }
        }
Ejemplo n.º 2
0
 void EndEditing()
 {
     if (editSession != null)
     {
         Remove(currentEditor);
         currentEditor.Destroy();
         editSession.Dispose();
         editSession      = null;
         currentEditorRow = null;
         QueueDraw();
     }
 }
Ejemplo n.º 3
0
 internal void EndEditing()
 {
     if (editSession != null)
     {
         Remove(currentEditor);
         currentEditor.Destroy();
         currentEditor = null;
         editSession.Dispose();
         editSession      = null;
         currentEditorRow = null;
         parentGrid.Populate(saveEditSession: false);
         QueueDraw();
     }
 }
Ejemplo n.º 4
0
        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();
                }
            }
        }