Beispiel #1
0
    //------------------------------------------------------------------------------
    //  Explicit Activation
    //      This entry point is used to activate the application explicitly
    //------------------------------------------------------------------------------
    //точка входа, запуск приложения в NX12 ctrl+u
    public static int Main(string[] args)
    {
        int retValue = 0;

        try
        {
            theProgram = new Nx_Wpf();

            //главное окно
            NX_WPF_My.MainWindow dialog = new NX_WPF_My.MainWindow();
            dialog.ShowDialog();
            theProgram.Dispose();
        }
        catch (NXOpen.NXException ex)
        {
            UI.GetUI().NXMessageBox.Show("Message", NXMessageBox.DialogType.Error, ex.Message);
        }
        return(retValue);
    }