private ListViewItem FindItemForProduct(HeuristicLab.PluginInfrastructure.Advanced.DeploymentService.ProductDescription activeProduct)
 {
     return((from item in productsListView.Items.OfType <ListViewItem>()
             let product = item.Tag as DeploymentService.ProductDescription
                           where product != null
                           where product == activeProduct
                           select item).Single());
 }
 private void MarkProductDirty(HeuristicLab.PluginInfrastructure.Advanced.DeploymentService.ProductDescription activeProduct)
 {
     if (!dirtyProducts.Contains(activeProduct))
     {
         dirtyProducts.Add(activeProduct);
         var item = FindItemForProduct(activeProduct);
         item.ImageIndex = 1;
         UpdateProductButtons();
     }
 }
예제 #3
0
 public void DeleteProduct(HeuristicLab.PluginInfrastructure.Advanced.DeploymentService.ProductDescription product)
 {
     base.Channel.DeleteProduct(product);
 }