Example #1
0
        //------------------------------------------------------------------------------
        //  Explicit Activation
        //      This entry point is used to activate the application explicitly
        //------------------------------------------------------------------------------
        public static int Main(string[] args)
        {
            int retValue = 0;

            try
            {
                theProgram = new Program();

                //TODO: Add your application code here
                if (args[0] == "3DPPM_RevolveTrim")
                {
                    NXFun.ShowHuizhuan();
                }
                else if (args[0] == "3DPPM_AddTolerance")
                {
                    NXFun.ShowGongcha();
                }
                else if (args[0] == "3DPPM_MachinedSurface")
                {
                    NXFun.ShowJiagongmian();
                }
                else if (args[0] == "3DPPM_CAPPAssistant")
                {
                    //                 CAPPAssistant assistant = new CAPPAssistant();
                    //                 assistant.Show();
                    NXFun.ShowCAPP();
                }
                else if (args[0] == "3DPPM_Help")
                {
                    NXFun.ShowHelp();
                }
                else if (args[0] == "3DPPM_3DPPM")
                {
                    MainDlg md = new MainDlg();
                    md.Show();
                }
                else if (args[0] == "3DPPM_About")
                {
                    NXFun.ShowAbout();
                }
                theProgram.Dispose();
            }
            catch (NXOpen.NXException ex)
            {
                // ---- Enter your exception handling code here -----
                UI.GetUI().NXMessageBox.Show("Message", NXMessageBox.DialogType.Error, ex.Message);
            }
            return(retValue);
        }
Example #2
0
 //帮助菜单
 private void tsmHelp_Click(object sender, EventArgs e)
 {
     NXFun.ShowHelp();
 }