Exemplo n.º 1
0
        private void EmulateStorageCommitSCP()
        {
            StoreCommitScp storageCommitScp = new StoreCommitScp();

            storageCommitScp.Initialize(this.Parent);
            storageCommitScp.Options.DeepCopyFrom(_threadOptions);

            storageCommitScp.Options.LocalAeTitle = _threadOptions.LocalAeTitle;
            storageCommitScp.Options.LocalPort    = _threadOptions.LocalPort;
            //storageCommitScp.Options.RemoteAeTitle = _threadOptions.RemoteAeTitle;

            String resultsFileBaseName = "StorageCommitOperationAsSCP_" + System.DateTime.Now.ToString("yyyyMMddHHmmss", System.Globalization.CultureInfo.InvariantCulture);

            storageCommitScp.Options.ResultsFileNameOnlyWithoutExtension = resultsFileBaseName;
            storageCommitScp.Options.Identifier = resultsFileBaseName;

            storageCommitScp.Options.ResultsDirectory = _threadOptions.ResultsDirectory;
            storageCommitScp.Options.DataDirectory    = _threadOptions.DataDirectory;
            storageCommitScp.Options.StorageMode      = Dvtk.Sessions.StorageMode.AsDataSet;
            storageCommitScp.Options.LogThreadStartingAndStoppingInParent = false;
            storageCommitScp.Options.LogWaitingForCompletionChildThreads  = false;
            storageCommitScp.Options.AutoValidate = autoValidate;

            //Enable Stop button in UI
            emulatorObj.Invoke(emulatorObj.UpdateUIControlsHandler);

            if (tslist.Count == 0)
            {
                tslist.Add("1.2.840.10008.1.2");
            }
            storageCommitScp.setSupportedTS(tslist);

            storageCommitScp.Start();
        }
Exemplo n.º 2
0
        private void EmulateStorageCommitSCP()
        {
            StoreCommitScp storageCommitScp = new StoreCommitScp();

            storageCommitScp.Initialize(this.Parent);
            storageCommitScp.Options.DeepCopyFrom(_threadOptions);

            storageCommitScp.Options.LocalAeTitle = _threadOptions.LocalAeTitle;
            storageCommitScp.Options.LocalPort = _threadOptions.LocalPort;
            //storageCommitScp.Options.RemoteAeTitle = _threadOptions.RemoteAeTitle;

            String resultsFileBaseName = "StorageCommitOperationAsSCP_" + System.DateTime.Now.ToString("yyyyMMddHHmmss", System.Globalization.CultureInfo.InvariantCulture);
            storageCommitScp.Options.ResultsFileNameOnlyWithoutExtension = resultsFileBaseName;
            storageCommitScp.Options.Identifier = resultsFileBaseName;

            storageCommitScp.Options.ResultsDirectory = _threadOptions.ResultsDirectory;
            storageCommitScp.Options.DataDirectory = _threadOptions.DataDirectory;
            storageCommitScp.Options.StorageMode = Dvtk.Sessions.StorageMode.AsDataSet;
            storageCommitScp.Options.LogThreadStartingAndStoppingInParent = false;
            storageCommitScp.Options.LogWaitingForCompletionChildThreads = false;
            storageCommitScp.Options.AutoValidate = false;

            //Enable Stop button in UI
            emulatorObj.Invoke(emulatorObj.UpdateUIControlsHandler);

            if (tslist.Count == 0)
                tslist.Add("1.2.840.10008.1.2");
            storageCommitScp.setSupportedTS(tslist);

            storageCommitScp.Start();
        }