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; } } }
public void Execute(object parameter) { RibbonButton btn = parameter as RibbonButton; if (btn != null) { SpeckleAutocadCommand.SpeckleCommand(); } }