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();
}
}
}