Exemplo n.º 1
0
        private void SetBulkDevice()
        {
            _bulkDeviceList = new BulkDeviceList();
            foreach (VirtualResourceMetadataAssetUsage vrmau in _assetMetadataUsages)
            {
                XElement           asd = XElement.Parse(vrmau.AssetSelectionData);
                AssetSelectionData assetSelectionData = Serializer.Deserialize <AssetSelectionData>(asd);

                foreach (string assetId in assetSelectionData.SelectedAssets)
                {
                    if (AssetNotInList(assetId))
                    {
                        BulkDeviceEnt bulkDevice = new BulkDeviceEnt();

                        bulkDevice.CurrentDevice             = assetId;
                        bulkDevice.Active                    = IsActiveAsset(assetId, assetSelectionData.InactiveAssets);
                        bulkDevice.VirtualResourceMetadataId = vrmau.VirtualResourceMetadataId;

                        _bulkDeviceList.Add(bulkDevice);
                    }
                }
            }
        }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="BulkDeviceControl"/> class.
 /// </summary>
 /// <param name="bulkDeviceList">The bulk device list.</param>
 public BulkDeviceControl(BulkDeviceList bulkDeviceList)
 {
     _bulkDeviceList = bulkDeviceList;
     InitializeComponent();
     BindBulkDeviceGrid();
 }