using Infragistics.Win;
using Infragistics.Win.UltraWinListView;
using System.Diagnostics;
[Flags]
public enum UIState
{
None = 0x0000,
Visible = 0x0001,
Enabled = 0x0002,
HotTracking = 0x0004,
Active = 0x0008,
Selected = 0x0010,
}
public UIState GetItemState( UltraListViewItem item )
{
UIState retVal = UIState.None;
if ( item.Visible )
retVal |= UIState.Visible;
if ( item.Enabled )
retVal |= UIState.Enabled;
if ( item.IsHotTracking )
retVal |= UIState.HotTracking;
if ( item.IsActive )
retVal |= UIState.Active;
if ( item.IsSelected )
retVal |= UIState.Selected;
return retVal;
}
public UIState GetGroupState( UltraListViewGroup group )
{
UIState retVal = UIState.None;
if ( group.Visible )
retVal |= UIState.Visible;
if ( group.Enabled )
retVal |= UIState.Enabled;
return retVal;
}