protected override void ExecuteAction(string ribbonId)
        {
            Selection selection     = this.GetCurrentSelection();
            Shape     selectedShape = selection.ShapeRange[1];

            if (selection.HasChildShapeRange)
            {
                selectedShape = selection.ChildShapeRange[1];
            }

            EditNameDialogBox editForm = new EditNameDialogBox(selectedShape);

            editForm.ShowDialog();
        }
        protected override void ExecuteAction(string ribbonId)
        {
            Selection selection     = this.GetCurrentSelection();
            Shape     selectedShape = selection.ShapeRange[1];

            if (selection.HasChildShapeRange)
            {
                selectedShape = selection.ChildShapeRange[1];
            }

            EditNameDialogBox editForm = new EditNameDialogBox(selectedShape);

            editForm.ShowDialog();

            if (!this.GetApplication().CommandBars.GetPressedMso("SelectionPane"))
            {
                this.GetApplication().CommandBars.ExecuteMso("SelectionPane");
            }
        }