Esempio n. 1
0
        protected override void ExecuteAction(string ribbonId)
        {
            Selection selection     = this.GetCurrentSelection();
            Shape     selectedShape = ShapeUtil.GetShapeRange(selection)[1];

            EditNameDialogBox editForm = new EditNameDialogBox(selectedShape);

            editForm.ShowThematicDialog();

            if (!this.GetApplication().CommandBars.GetPressedMso("SelectionPane"))
            {
                this.GetApplication().CommandBars.ExecuteMso("SelectionPane");
            }
        }
        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");
            }
        }