public Shell() { #if DEBUG BindingErrorTraceListener.SetTrace(); #endif InitializeComponent(); }
public ShellRibbon() { #if DEBUG BindingErrorTraceListener.SetTrace(); #endif InitializeComponent(); // Insert code required on object creation below this point. }
public static void SetTrace(SourceLevels level, TraceOptions options) { if (_Listener == null) { _Listener = new BindingErrorTraceListener(); PresentationTraceSources.DataBindingSource.Listeners.Add(_Listener); } _Listener.TraceOutputOptions = options; PresentationTraceSources.DataBindingSource.Switch.Level = level; }
public static void CloseTrace() { if (_Listener == null) { return; } _Listener.Flush(); _Listener.Close(); PresentationTraceSources.DataBindingSource.Listeners.Remove(_Listener); _Listener = null; }