Beispiel #1
0
 public static void AddAeTitle(string aeTitle, string clientae)
 {
     if (!_Datasets.ContainsKey(aeTitle))
     {
         _Datasets[aeTitle] = new AutoCopyItem(aeTitle)
         {
             ClientAE = clientae
         };
     }
 }
Beispiel #2
0
        /// <summary>
        /// Removes the dataset.
        /// </summary>
        /// <param name="aeTitle">The ae title.</param>
        /// <param name="instance">The SOP instance to remove.</param>
        /// <remarks> A dataset will be removed if the store operation failed.</remarks>
        public static void RemoveDataset(string aeTitle, string instance)
        {
            if (_Datasets.ContainsKey(aeTitle))
            {
                AutoCopyItem item = _Datasets[aeTitle];

                if (item.Datasets.Contains(instance))
                {
                    item.Datasets.Remove(instance);
                }
            }
        }