private void bd_OnExecute(NameValueMap Context) { // Link button clicks to their respective commands. switch (bd.InternalName) { case "my_first_button": CommandFunctions.RunAnExe(); return; case "my_second_button": CommandFunctions.PopupMessage(); return; case "close_doc_button": CommandFunctions.CloseDocument(); return; case "export_dxf_button": CommandFunctions.ExportDxf(); return; default: return; } }
// Link button clicks to their respective commands. private void MyFirstButton_OnExecute(NameValueMap Context) { CommandFunctions.RunAnExe(); }