Пример #1
0
        public static void WriteLineIf(bool condition, string msg)
        {
            IChoProfile profile = GetDefaultContext(new StackFrame(1));

            if (profile != null)
            {
                profile.AppendLineIf(condition, msg);
            }
            else
            {
                ChoTrace.WriteLineIf(condition, msg);
            }
        }
Пример #2
0
        public static void WriteSeparatorIf(bool condition)
        {
            IChoProfile profile = GetDefaultContext(new StackFrame(1));

            if (profile != null)
            {
                profile.AppendLineIf(condition, ChoTrace.SEPARATOR);
            }
            else
            {
                ChoTrace.WriteLineIf(condition, ChoTrace.SEPARATOR);
            }
        }
Пример #3
0
        public static void WriteLineIf(bool condition, string format, params object[] args)
        {
            IChoProfile profile = GetDefaultContext(new StackFrame(1));

            if (profile != null)
            {
                profile.AppendLineIf(condition, String.Format(format, args));
            }
            else
            {
                ChoTrace.WriteLineIf(condition, String.Format(format, args));
            }
        }