private void RaiseNeedContextInformation(NeedContextInformationEventArgs args) { if (NeedContextInformation != null) { NeedContextInformation(this, args); } }
private void WriteLineIf(bool condition, string text) { NeedContextInformationEventArgs args = new NeedContextInformationEventArgs(); RaiseNeedContextInformation(args); WriteLineIf(condition, args.ContextInformation, text); }