Commit ba7beb66 authored by alan.f's avatar alan.f

change-dicomFiles-type

parent ec5c0a7f
......@@ -25,7 +25,7 @@ namespace C_UI
string fileExt = System.IO.Path.GetExtension(ofdUploadFile.FileName);
if (result == DialogResult.OK && fileExt==".dcm")
{
SCU_Store.StoreFile(cbxIPs.Text, int.Parse(txtPort.Text), ofdUploadFile.FileNames.ToObservable(), txtServerAET.Text, txtAet.Text);
SCU_Store.StoreFile(cbxIPs.Text, int.Parse(txtPort.Text), ofdUploadFile.FileNames, txtServerAET.Text, txtAet.Text);
}
}
......
......@@ -20,13 +20,13 @@ namespace C_UI
{
static Logger logger = LogManager.GetCurrentClassLogger();
public static async Task StoreFile(string _storeServerHost, int _storeServerPort, IObservable<string> dicomFiles
public static async Task StoreFile(string _storeServerHost, int _storeServerPort, string[] dicomFiles
, string _aet, string _storeServerAET)
{
var client = new DicomClient(_storeServerHost, _storeServerPort, false, _storeServerAET, _aet);
client.NegotiateAsyncOps();
dicomFiles.Subscribe(
dicomFiles.ToObservable().Subscribe(
async onNext =>
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment