/// <summary>
 /// Initializes a new instance of the <see cref="T:ptItemsHierarchy"/> class.
 /// </summary>
 public ptItemsHierarchy()
 {
     this.applications = new IAzManApplication[0];
     this.Title = Globalization.MultilanguageResource.GetString("frmItemsHierarchyView_lblInfo.Text");
     this.TopIcon = Properties.Resources.Hierarchy_32x32;
     this.alreadyPrinted = new List<object>();
     this.frm = new frmItemsHierarchyView();
     this.linePen = new Pen(Brushes.Black, 1F);
     this.linePen.DashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
 }
        private void RefreshItemsHierarchy()
        {
            frmItemsHierarchyView ihv = new frmItemsHierarchyView();

            this.DialogResult = DialogResult.None;
            ImageList clonedImageList = new ImageList();

            foreach (Image image in ihv.imageListItemHierarchyView.Images)
            {
                clonedImageList.Images.Add((Image)image.Clone());
            }
            this.checkAccessTestTreeView.ImageList = clonedImageList;
            ihv.applications = new IAzManApplication[] { this.application };
            ihv.buildApplicationsTreeView();
            this.checkAccessTestTreeView.Nodes.Clear();
            this.checkAccessTestTreeView.Nodes.Add((TreeNode)ihv.itemsHierarchyTreeView.Nodes[0].Clone());
            this.checkAccessTestTreeView.ExpandAll();
            ihv.Dispose();
        }
 void ItemsHVAction_Triggered(object sender, MMC.SyncActionEventArgs e)
 {
     IAzManApplication[] applications = new IAzManApplication[this.SelectedNodes.Count];
     int index = 0;
     foreach (ApplicationScopeNode applicationScopeNode in this.SelectedNodes)
     {
         applications[index++] = applicationScopeNode.Application;
     }
     frmItemsHierarchyView frm = new frmItemsHierarchyView();
     frm.applications = applications;
     this.SnapIn.Console.ShowDialog(frm);
 }
 void ItemsHVAction_Triggered(object sender, MMC.SyncActionEventArgs e)
 {
     frmItemsHierarchyView frm = new frmItemsHierarchyView();
     frm.applications = new IAzManApplication[] { this.application };
     this.SnapIn.Console.ShowDialog(frm);
 }
 private void RefreshItemsHierarchy()
 {
     frmItemsHierarchyView ihv = new frmItemsHierarchyView();
     this.DialogResult = DialogResult.None;
     ImageList clonedImageList = new ImageList();
     foreach (Image image in ihv.imageListItemHierarchyView.Images)
     {
         clonedImageList.Images.Add((Image)image.Clone());
     }
     this.checkAccessTestTreeView.ImageList = clonedImageList;
     ihv.applications = new IAzManApplication[] { this.application };
     ihv.buildApplicationsTreeView();
     this.checkAccessTestTreeView.Nodes.Clear();
     this.checkAccessTestTreeView.Nodes.Add((TreeNode)ihv.itemsHierarchyTreeView.Nodes[0].Clone());
     this.checkAccessTestTreeView.ExpandAll();
     ihv.Dispose();
 }