/// <summary> /// Displays the trace viewer with the current trace opened. /// Warning: do not use this in production code /// /// Important : the _isEnabled is not useful there because user can call Disable() /// Better to recheck debugger attachment or enablement in AppSettings /// /// </summary> //[Conditional("DEBUG")] public static void ShowDialog() { if (!IsTracingAllowed) { return; } using (FrmTraceViewer frm = new FrmTraceViewer()) { frm.Initialize(SpatialTrace.TraceFilePath); frm.ShowDialog(); } }
/// <summary> /// Displays the trace viewer with the current trace opened. /// Warning: do not use this in production code /// /// Important : the _isEnabled is not useful there because user can call Disable() /// Better to recheck debugger attachment or enablement in AppSettings /// /// </summary> //[Conditional("DEBUG")] public static void ShowDialog() { if (!IsTracingAllowed) return; using (FrmTraceViewer frm = new FrmTraceViewer()) { frm.Initialize(SpatialTrace.TraceFilePath); frm.ShowDialog(); } }