Ejemplo n.º 1
0
        static void Main()
        {
#if !DEBUG
            try
            {
#endif

            // Checks the version of both the application and the DVTk library.
            // If one or both are a non-official or Alpha version, a warning message box is displayed.
            DvtkApplicationLayer.VersionChecker.CheckVersion();
            DvtkApplicationLayer.DefinitionFilesChecker.CheckVersion("1.0.0", "2.0.0");

            // Initialize the Dvtk library
            Dvtk.Setup.Initialize();

            // Invoke the form and start the processing
            DCMCompareForm form = new DCMCompareForm();
            form.ShowDialog();

            // Terminate the Dvtk library
            Dvtk.Setup.Terminate();

#if !DEBUG
        }

        catch (Exception exception)
        {
            CustomExceptionHandler.ShowThreadExceptionDialog(exception);
        }
#endif
        }
Ejemplo n.º 2
0
        static void Main()
        {
            GlobalOptions.AutoExit = true;

            MainSession theMainScriptSession = new MainSession();
            theMainScriptSession.Options.ResultsDirectory = Application.StartupPath + "\\Results\\";

            DirectoryInfo resultDirectory = new DirectoryInfo (theMainScriptSession.Options.ResultsDirectory);
            if(!resultDirectory.Exists)
            {
                resultDirectory.Create();
            }

            theMainScriptSession.Options.ScrictValidation = true;
            theMainScriptSession.LoadDefinitionFile(Application.StartupPath + "\\Allotherattributes.def");
            DvtkHighLevelInterface.Setup.Initialize(MainSession.SCRIPT_FILE_NAME, true);
            theMainScriptSession.StartAndEndResultsGathering = true;

            DvtkHighLevelInterface.Setup.MainScriptSession = theMainScriptSession;

            DCMCompareForm form = new DCMCompareForm();

            form.ShowDialog();

            theMainScriptSession.ExecuteThread(1000);

            DvtkHighLevelInterface.UserInteraction.Singleton.ShowDialog();

            DvtkHighLevelInterface.Setup.Terminate();

            form.ShowDialog();
        }
Ejemplo n.º 3
0
        static void Main()
        {
            GlobalOptions.AutoExit = true;

            MainSession theMainScriptSession = new MainSession();

            theMainScriptSession.Options.ResultsDirectory = Application.StartupPath + "\\Results\\";

            DirectoryInfo resultDirectory = new DirectoryInfo(theMainScriptSession.Options.ResultsDirectory);

            if (!resultDirectory.Exists)
            {
                resultDirectory.Create();
            }

            theMainScriptSession.Options.ScrictValidation = true;
            theMainScriptSession.LoadDefinitionFile(Application.StartupPath + "\\Allotherattributes.def");
            DvtkHighLevelInterface.Setup.Initialize(MainSession.SCRIPT_FILE_NAME, true);
            theMainScriptSession.StartAndEndResultsGathering = true;

            DvtkHighLevelInterface.Setup.MainScriptSession = theMainScriptSession;

            DCMCompareForm form = new DCMCompareForm();

            form.ShowDialog();

            theMainScriptSession.ExecuteThread(1000);

            DvtkHighLevelInterface.UserInteraction.Singleton.ShowDialog();

            DvtkHighLevelInterface.Setup.Terminate();

            form.ShowDialog();
        }
Ejemplo n.º 4
0
        static void Main()
        {
            #if !DEBUG
            try
            {
            #endif

            // Checks the version of both the application and the DVTk library.
            // If one or both are a non-official or Alpha version, a warning message box is displayed.
            DvtkApplicationLayer.VersionChecker.CheckVersion();
            DvtkApplicationLayer.DefinitionFilesChecker.CheckVersion("1.0.0", "2.0.0");

            // Initialize the Dvtk library
            Dvtk.Setup.Initialize();

            // Invoke the form and start the processing
            DCMCompareForm form = new DCMCompareForm();
            form.ShowDialog();

            // Terminate the Dvtk library
            Dvtk.Setup.Terminate();

            #if !DEBUG
            }
            catch(Exception exception)
            {
                CustomExceptionHandler.ShowThreadExceptionDialog(exception);
            }
            #endif
        }