예제 #1
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();
        }
예제 #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();
        }