public static string GetColumnString(AudioProfilerClipInfoWrapper info, AudioProfilerClipInfoHelper.ColumnIndices index) { string result; switch (index) { case AudioProfilerClipInfoHelper.ColumnIndices.AssetName: result = info.assetName; break; case AudioProfilerClipInfoHelper.ColumnIndices.LoadState: result = AudioProfilerClipInfoHelper.m_LoadStateNames[info.info.loadState]; break; case AudioProfilerClipInfoHelper.ColumnIndices.InternalLoadState: result = AudioProfilerClipInfoHelper.m_InternalLoadStateNames[info.info.internalLoadState]; break; case AudioProfilerClipInfoHelper.ColumnIndices.Age: result = info.info.age.ToString(); break; case AudioProfilerClipInfoHelper.ColumnIndices.Disposed: result = ((info.info.disposed == 0) ? "NO" : "YES"); break; case AudioProfilerClipInfoHelper.ColumnIndices.NumChannelInstances: result = info.info.numChannelInstances.ToString(); break; default: result = "Unknown"; break; } return(result); }
public static string GetColumnString(AudioProfilerClipInfoWrapper info, ColumnIndices index) { switch (index) { case ColumnIndices.AssetName: return(info.assetName); case ColumnIndices.LoadState: return(m_LoadStateNames[info.info.loadState]); case ColumnIndices.InternalLoadState: return(m_InternalLoadStateNames[info.info.internalLoadState]); case ColumnIndices.Age: return(info.info.age.ToString()); case ColumnIndices.Disposed: return((info.info.disposed == 0) ? "NO" : "YES"); case ColumnIndices.NumChannelInstances: return(info.info.numChannelInstances.ToString()); } return("Unknown"); }
public AudioProfilerClipTreeViewItem(int id, int depth, TreeViewItem parent, string displayName, AudioProfilerClipInfoWrapper info) : base(id, depth, parent, displayName) { this.info = info; }