private void DataSetLoaderOnModelLoaded(object sender, PendingDataSet pendingDataSet)
 {
     PendingDataSets.Remove(pendingDataSet);
     if (pendingDataSet.Cancel == false)
     {
         DataSetModels.Add(pendingDataSet.Model);
         if (SelectedDataSet == null)
         {
             SelectedDataSet = DataSetModels.FirstOrDefault();
         }
     }
     else if (pendingDataSet.OutOfMemory)
     {
         NotifyUser.NotifyUserByNotification(new Notification()
         {
             Title     = "Ooops!",
             Message   = $"Your dataset '{pendingDataSet.DataSetName}' caused OutOfMemory exception. Please try to load smaller dataset of try load images in dataset in smaller scale.",
             Exception = pendingDataSet.ExceptionDescription
         });
     }
     else if (pendingDataSet.Exception)
     {
         NotifyUser.NotifyUserByMessage($"Something happend during loading {pendingDataSet.DataSetName} dataset.", pendingDataSet.ExceptionDescription);
     }
     OnPropertyChanged(nameof(AnyPendingDataSets));
     OnPropertyChanged(nameof(AnyLoadedDataSets));
 }
 public void RemoveDataSet(DataSetModel paModel)
 {
     DataSetModels.Remove(paModel);
     GcHelper.ForceCollect();
     OnPropertyChanged(nameof(AnyLoadedDataSets));
 }