public void ImageChanged() { // Only try to update if the item has already been inserted and the images have changed. if (GetImageIndices() && HScopeItem != IntPtr.Zero) { ScopeDataItem item = new ScopeDataItem(); item.Id = HScopeItem; item.Mask = (uint)ScopeDataItemFlags.Image | (uint)ScopeDataItemFlags.OpenImage; item.Image = m_closedImageIndex; item.OpenImage = m_openImageIndex; IConsoleNameSpace2 ns = Snapin.ConsoleNamespace; ns.SetItem(ref item); // If this node is currently shown in the result view also update all the result images. // There is no correlation between a scope node and a result node, so all result nodes must // be checked. if (m_snapin.CurrentScopeNode == m_parentNode) { ResultNode parentResult = m_parentNode as ResultNode; if (parentResult != null) { parentResult.UpdateResultImages(); } } } }
public ResultPropertyFormData(Result result, ResultNode node) { m_result = result; m_node = node; }