Пример #1
0
            public void Execute(object parameter)
            {
                RibbonButton btn = parameter as RibbonButton;

                if (btn != null)
                {
                    switch (commandParameter)
                    {
                    case "Speckle":
                        SpeckleAutocadCommand.SpeckleCommand();
                        break;

                    case "SpeckleNewUi":
                        SpeckleAutocadCommand2.SpeckleCommand();
                        break;

                    case "SpeckleCommunity":
                        SpeckleAutocadCommand2.SpeckleCommunity();
                        break;

                    case "SpeckleTutorials":
                        SpeckleAutocadCommand2.SpeckleTutorials();
                        break;

                    case "SpeckleDocs":
                        SpeckleAutocadCommand2.SpeckleDocs();
                        break;
                    }
                }
            }
Пример #2
0
            public void Execute(object parameter)
            {
                RibbonButton btn = parameter as RibbonButton;

                if (btn != null)
                {
                    SpeckleAutocadCommand.SpeckleCommand();
                }
            }