コード例 #1
0
                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;
                    }
                }
 private void CloseDocButton_OnExecute(NameValueMap Context)
 {
     CommandFunctions.CloseDocument();
 }