Esempio n. 1
0
        private void ActionEvaluateSelectedDICOMCommunication()
        {
            ArrayList selectedConnection = new ArrayList();
            selectedConnection.Add(comboBoxConnections.SelectedItem);
            //
            // Set the correct settings for the DicomThread.
            //
            String resultsFileBaseName = "DICOMNetworkAnalyzer";
            ThreadManager threadManager = new ThreadManager();

            HLIThread hliThread = new HLIThread(this,dvtkSnifferSession,selectedConnection);
            hliThread.Initialize(threadManager);
            hliThread.Options.ResultsDirectory = CurrentBaseFileName;
            hliThread.Options.Identifier = resultsFileBaseName;
            hliThread.Options.ResultsFileNameOnlyWithoutExtension = resultsFileBaseName;
            hliThread.Options.LogChildThreadsOverview = false;
            hliThread.Options.LogThreadStartingAndStoppingInParent = false;
            hliThread.Options.LogWaitingForCompletionChildThreads  = false;

            // Set the progress bar to minimum
            progressBarStatusBar.Minimum = 0;
            progressBarStatusBar.Maximum = 100;
            progressBarStatusBar.Step = 10;

            //
            // Start the DicomThread.
            //
            hliThread.Start();

            hliThread.WaitForCompletion();

            // Set the progress bar to maximum
            progressBarStatusBar.Value = progressBarStatusBar.Maximum;

            //Display results
            dvtkSummaryWebBrowserSniffer.Navigate(summaryXmlFullFileName);

            if (generateDetailedValidation)
            {
                dvtkDetailWebBrowserSniffer.Navigate(detailXmlFullFileName);
            }

            if(menuItemAnalysisMode.Checked)
                DisplayTabs();
        }
Esempio n. 2
0
        private void ActionEvaluateAllDICOMAssociations()
        {
            foreach(object item in comboBoxConnections.Items)
                connectionList.Add(item);

            //
            // Set the correct settings for the DicomThread.
            //
            String resultsFileBaseName = "DICOMNetworkAnalyzer";
            ThreadManager threadManager = new ThreadManager();

            HLIThread hliThread = new HLIThread(this,dvtkSnifferSession,connectionList);
            hliThread.Initialize(threadManager);
            hliThread.Options.ResultsDirectory = CurrentBaseFileName;
            hliThread.Options.Identifier = resultsFileBaseName;
            hliThread.Options.ResultsFileNameOnlyWithoutExtension = hliThread.Options.Identifier;

            // Set the progress bar to minimum
            //progressBarStatusBar.Visible = true;
            progressBarStatusBar.Minimum = 0;
            progressBarStatusBar.Maximum = 100;
            progressBarStatusBar.Step = 100/(connectionList.Count);

            statusBarSniffer.Text = "Please Wait......, Evaluation is in progress";
            Cursor.Current = Cursors.WaitCursor;

            //
            // Start the DicomThread.
            //
            hliThread.Start();

            hliThread.WaitForCompletion();

            // Set the progress bar to maximum
            progressBarStatusBar.Value = progressBarStatusBar.Maximum;

            statusBarSniffer.Text = "Evaluation finished";

            Cursor.Current = Cursors.Default;

            activityLog.Close();

            //Display results
            detailXmlFullFileName = hliThread.Options.DetailResultsFullFileName;
            analysisDlg.ShowResults(detailXmlFullFileName, activityLogFileName);

            menuItemEvaluateComm.Enabled = false;
            evaluateAllAssociations = false;

            if( captureFromFile && (capFileSniffer != null))
            {
                // Stop the low level sniffer
                capFileSniffer.Stop();
            }
        }