private void Browser_ScriptNotify(object sender, NotifyEventArgs e) { if (Debugger.IsAttached) { ScriptNotify newValue = new ScriptNotify() { Value = e.Value, Time = DateTime.Now, FormattedTime = "at " + (DateTime.Now.Subtract(startTime)).TotalMilliseconds.ToString("0,000") + " milliseconds" }; notifications.Add(newValue); DebugPanel.ScrollTo(newValue); } }