public static string GetColumnString(AudioProfilerGroupInfoWrapper info, AudioProfilerGroupInfoHelper.ColumnIndices index)
        {
            bool   flag  = (info.info.flags & 1) != 0;
            bool   flag2 = (info.info.flags & 64) != 0;
            string result;

            switch (index)
            {
            case AudioProfilerGroupInfoHelper.ColumnIndices.ObjectName:
                result = info.objectName;
                break;

            case AudioProfilerGroupInfoHelper.ColumnIndices.AssetName:
                result = info.assetName;
                break;

            case AudioProfilerGroupInfoHelper.ColumnIndices.Volume:
                result = AudioProfilerGroupInfoHelper.FormatDb(info.info.volume);
                break;

            case AudioProfilerGroupInfoHelper.ColumnIndices.Audibility:
                result = ((!flag2) ? AudioProfilerGroupInfoHelper.FormatDb(info.info.audibility) : "");
                break;

            case AudioProfilerGroupInfoHelper.ColumnIndices.PlayCount:
                result = ((!flag2) ? info.info.playCount.ToString() : "");
                break;

            case AudioProfilerGroupInfoHelper.ColumnIndices.Is3D:
                result = ((!flag2) ? ((!flag) ? "NO" : (((info.info.flags & 2) == 0) ? "YES" : "Spatial")) : "");
                break;

            case AudioProfilerGroupInfoHelper.ColumnIndices.IsPaused:
                result = ((!flag2) ? (((info.info.flags & 4) == 0) ? "NO" : "YES") : "");
                break;

            case AudioProfilerGroupInfoHelper.ColumnIndices.IsMuted:
                result = ((!flag2) ? (((info.info.flags & 8) == 0) ? "NO" : "YES") : "");
                break;

            case AudioProfilerGroupInfoHelper.ColumnIndices.IsVirtual:
                result = ((!flag2) ? (((info.info.flags & 16) == 0) ? "NO" : "YES") : "");
                break;

            case AudioProfilerGroupInfoHelper.ColumnIndices.IsOneShot:
                result = ((!flag2) ? (((info.info.flags & 32) == 0) ? "NO" : "YES") : "");
                break;

            case AudioProfilerGroupInfoHelper.ColumnIndices.IsLooped:
                result = ((!flag2) ? (((info.info.flags & 512) == 0) ? "NO" : "YES") : "");
                break;

            case AudioProfilerGroupInfoHelper.ColumnIndices.DistanceToListener:
                result = ((!flag2) ? (flag ? ((info.info.distanceToListener < 1000f) ? string.Format("{0:0.00} m", info.info.distanceToListener) : string.Format("{0:0.00} km", info.info.distanceToListener * 0.001f)) : "N/A") : "");
                break;

            case AudioProfilerGroupInfoHelper.ColumnIndices.MinDist:
                result = ((!flag2) ? (flag ? ((info.info.minDist < 1000f) ? string.Format("{0:0.00} m", info.info.minDist) : string.Format("{0:0.00} km", info.info.minDist * 0.001f)) : "N/A") : "");
                break;

            case AudioProfilerGroupInfoHelper.ColumnIndices.MaxDist:
                result = ((!flag2) ? (flag ? ((info.info.maxDist < 1000f) ? string.Format("{0:0.00} m", info.info.maxDist) : string.Format("{0:0.00} km", info.info.maxDist * 0.001f)) : "N/A") : "");
                break;

            case AudioProfilerGroupInfoHelper.ColumnIndices.Time:
                result = ((!flag2) ? string.Format("{0:0.00} s", info.info.time) : "");
                break;

            case AudioProfilerGroupInfoHelper.ColumnIndices.Duration:
                result = ((!flag2) ? string.Format("{0:0.00} s", info.info.duration) : "");
                break;

            case AudioProfilerGroupInfoHelper.ColumnIndices.Frequency:
                result = ((!flag2) ? ((info.info.frequency < 1000f) ? string.Format("{0:0.00} Hz", info.info.frequency) : string.Format("{0:0.00} kHz", info.info.frequency * 0.001f)) : string.Format("{0:0.00} x", info.info.frequency));
                break;

            case AudioProfilerGroupInfoHelper.ColumnIndices.IsStream:
                result = ((!flag2) ? (((info.info.flags & 128) == 0) ? "NO" : "YES") : "");
                break;

            case AudioProfilerGroupInfoHelper.ColumnIndices.IsCompressed:
                result = ((!flag2) ? (((info.info.flags & 256) == 0) ? "NO" : "YES") : "");
                break;

            case AudioProfilerGroupInfoHelper.ColumnIndices.IsNonBlocking:
                result = ((!flag2) ? (((info.info.flags & 8192) == 0) ? "NO" : "YES") : "");
                break;

            case AudioProfilerGroupInfoHelper.ColumnIndices.IsOpenUser:
                result = ((!flag2) ? (((info.info.flags & 4096) == 0) ? "NO" : "YES") : "");
                break;

            case AudioProfilerGroupInfoHelper.ColumnIndices.IsOpenMemory:
                result = ((!flag2) ? (((info.info.flags & 1024) == 0) ? "NO" : "YES") : "");
                break;

            case AudioProfilerGroupInfoHelper.ColumnIndices.IsOpenMemoryPoint:
                result = ((!flag2) ? (((info.info.flags & 2048) == 0) ? "NO" : "YES") : "");
                break;

            default:
                result = "Unknown";
                break;
            }
            return(result);
        }
        public static string GetColumnString(AudioProfilerGroupInfoWrapper info, ColumnIndices index)
        {
            bool flag  = (info.info.flags & 1) != 0;
            bool flag2 = (info.info.flags & 0x40) != 0;

            switch (index)
            {
            case ColumnIndices.ObjectName:
                return(info.objectName);

            case ColumnIndices.AssetName:
                return(info.assetName);

            case ColumnIndices.Volume:
                return(FormatDb(info.info.volume));

            case ColumnIndices.Audibility:
                return(!flag2 ? FormatDb(info.info.audibility) : "");

            case ColumnIndices.PlayCount:
                return(!flag2 ? info.info.playCount.ToString() : "");

            case ColumnIndices.Is3D:
                return(!flag2 ? (!flag ? "NO" : (((info.info.flags & 2) == 0) ? "YES" : "Spatial")) : "");

            case ColumnIndices.IsPaused:
                return(!flag2 ? (((info.info.flags & 4) == 0) ? "NO" : "YES") : "");

            case ColumnIndices.IsMuted:
                return(!flag2 ? (((info.info.flags & 8) == 0) ? "NO" : "YES") : "");

            case ColumnIndices.IsVirtual:
                return(!flag2 ? (((info.info.flags & 0x10) == 0) ? "NO" : "YES") : "");

            case ColumnIndices.IsOneShot:
                return(!flag2 ? (((info.info.flags & 0x20) == 0) ? "NO" : "YES") : "");

            case ColumnIndices.IsLooped:
                return(!flag2 ? (((info.info.flags & 0x200) == 0) ? "NO" : "YES") : "");

            case ColumnIndices.DistanceToListener:
                return(!flag2 ? (flag ? ((info.info.distanceToListener < 1000f) ? $"{info.info.distanceToListener:0.00} m" : $"{(info.info.distanceToListener * 0.001f):0.00} km") : "N/A") : "");

            case ColumnIndices.MinDist:
                return(!flag2 ? (flag ? ((info.info.minDist < 1000f) ? $"{info.info.minDist:0.00} m" : $"{(info.info.minDist * 0.001f):0.00} km") : "N/A") : "");

            case ColumnIndices.MaxDist:
                return(!flag2 ? (flag ? ((info.info.maxDist < 1000f) ? $"{info.info.maxDist:0.00} m" : $"{(info.info.maxDist * 0.001f):0.00} km") : "N/A") : "");

            case ColumnIndices.Time:
                return(!flag2 ? $"{info.info.time:0.00} s" : "");

            case ColumnIndices.Duration:
                return(!flag2 ? $"{info.info.duration:0.00} s" : "");

            case ColumnIndices.Frequency:
                return(!flag2 ? ((info.info.frequency < 1000f) ? $"{info.info.frequency:0.00} Hz" : $"{(info.info.frequency * 0.001f):0.00} kHz") : $"{info.info.frequency:0.00} x");

            case ColumnIndices.IsStream:
                return(!flag2 ? (((info.info.flags & 0x80) == 0) ? "NO" : "YES") : "");

            case ColumnIndices.IsCompressed:
                return(!flag2 ? (((info.info.flags & 0x100) == 0) ? "NO" : "YES") : "");

            case ColumnIndices.IsNonBlocking:
                return(!flag2 ? (((info.info.flags & 0x2000) == 0) ? "NO" : "YES") : "");

            case ColumnIndices.IsOpenUser:
                return(!flag2 ? (((info.info.flags & 0x1000) == 0) ? "NO" : "YES") : "");

            case ColumnIndices.IsOpenMemory:
                return(!flag2 ? (((info.info.flags & 0x400) == 0) ? "NO" : "YES") : "");

            case ColumnIndices.IsOpenMemoryPoint:
                return(!flag2 ? (((info.info.flags & 0x800) == 0) ? "NO" : "YES") : "");
            }
            return("Unknown");
        }
 public AudioProfilerGroupTreeViewItem(int id, int depth, TreeViewItem parent, string displayName, AudioProfilerGroupInfoWrapper info) : base(id, depth, parent, displayName)
 {
     this.info = info;
 }