Пример #1
0
		public void AddEmbeddedControl(ListViewItem.ListViewSubItem subItem, Control control)
		{
			if ( subItem == null || control == null )
				throw new Exception("Invalid parameter");

			// Add control and associate the control with the ListViewItem hash code
			embeddedControlsHashTable.Add(subItem.GetHashCode(), new ListViewEmbeddedControl(control));
            
		}
Пример #2
0
		public void RemoveEmbeddedControl(ListViewItem.ListViewSubItem subItem, Control control)
		{
			// Check for a valid parameter
			if ( subItem == null || control == null )
				throw new Exception("Invalid parameter");
		
			// Remove the control associate with this subitem
			embeddedControlsHashTable.Remove(subItem.GetHashCode());
		}
Пример #3
0
		ListViewEmbeddedControl GetEmbeddedControl(ListViewItem.ListViewSubItem subItem)
		{
			int hashCode = subItem.GetHashCode();
			return (ListViewEmbeddedControl)embeddedControlsHashTable[hashCode];
            
		}