コード例 #1
0
        public void ShowPackagesBatch(IEnumerable <IPackageDetails> packageDetails, PackageOperationType operationType)
        {
            var packagesBatch = new PackagesBatch {
                OperationType = PackageOperationType.Update
            };

            packagesBatch.PackageList.AddRange(packageDetails);

            _dispatcherService.Invoke(() => _uiVisualizerService.ShowDialogAsync <PackageBatchViewModel>(packagesBatch), true);
        }
コード例 #2
0
        public void ShowPackagesBatch(IEnumerable<IPackageDetails> packageDetails, PackageOperationType operationType)
        {
            var packagesBatch = new PackagesBatch
            {
                OperationType = PackageOperationType.Update
            };

            ((ICollection<IPackageDetails>)packagesBatch.PackageList).AddRange(packageDetails);

            _dispatcherService.Invoke(() => _uiVisualizerService.ShowDialogAsync<PackageBatchViewModel>(packagesBatch), true);
        }