/// <summary> /// Initializes a new instance of the <see cref="LogListViewItem" /> class. /// </summary> /// <param name="item">The item.</param> public LogListViewItem(Log.Entry item) { Item = item; Time = item.Time.ToString("HH:mm:ss.fff"); Location = Path.GetFileName(item.File) + "/" + item.Method + "():" + item.Line; switch (item.Level) { default: case Log.Level.None: Icon = "/RSTVShowTracker;component/Images/unchecked.png"; break; case Log.Level.Trace: Icon = "/RSTVShowTracker;component/Images/bug.png"; break; case Log.Level.Debug: Icon = "/RSTVShowTracker;component/Images/information-white.png"; break; case Log.Level.Info: Icon = "/RSTVShowTracker;component/Images/information.png"; break; case Log.Level.Warn: Icon = "/RSTVShowTracker;component/Images/exclamation.png"; break; case Log.Level.Error: Icon = "/RSTVShowTracker;component/Images/exclamation-red.png"; break; case Log.Level.Fatal: Icon = "/RSTVShowTracker;component/Images/fire.png"; break; } }