AspNetEdit.UI.PropertyEditors.ExpandableObjectEditor.LaunchDialogue C# (CSharp) Метод

LaunchDialogue() публичный Метод

public LaunchDialogue ( ) : void
Результат void
        public override void LaunchDialogue()
        {
            //dialogue and buttons
            Dialog dialog = new Dialog ();
            dialog.Title = "Expandable Object Editor ";
            dialog.Modal = true;
            dialog.AllowGrow = true;
            dialog.AllowShrink = true;
            dialog.Modal = true;
            dialog.AddActionWidget (new Button (Stock.Cancel), ResponseType.Cancel);
            dialog.AddActionWidget (new Button (Stock.Ok), ResponseType.Ok);

            //propGrid
            grid = new PropertyGrid (parentRow.ParentGrid.EditorManager);
            grid.CurrentObject = parentRow.PropertyValue;
            grid.WidthRequest = 200;
            grid.ShowHelp = false;
            dialog.VBox.PackStart (grid, true, true, 5);

            //show and get response
            dialog.ShowAll ();
            ResponseType response = (ResponseType) dialog.Run();
            dialog.Destroy ();

            //if 'OK' put items back in collection
            if (response == ResponseType.Ok)
            {
            }

            //clean up so we start fresh if launched again
        }