예제 #1
0
        public static void WriteNewLineIf(bool condition)
        {
            IChoProfile profile = GetDefaultContext(new StackFrame(1));

            if (profile != null)
            {
                profile.AppendIf(condition, Environment.NewLine);
            }
            else
            {
                ChoTrace.WriteLineIf(condition, Environment.NewLine);
            }
        }
예제 #2
0
        public static void WriteIf(bool condition, string format, params object[] args)
        {
            IChoProfile profile = GetDefaultContext(new StackFrame(1));

            if (profile != null)
            {
                profile.AppendIf(condition, String.Format(format, args));
            }
            else
            {
                ChoTrace.WriteIf(condition, String.Format(format, args));
            }
        }
예제 #3
0
        public static void WriteIf(bool condition, string msg)
        {
            IChoProfile profile = GetDefaultContext(new StackFrame(1));

            if (profile != null)
            {
                profile.AppendIf(condition, msg);
            }
            else
            {
                ChoTrace.WriteIf(condition, msg);
            }
        }
예제 #4
0
        public static void Write(string msg)
        {
            IChoProfile profile = GetDefaultContext(new StackFrame(1));

            if (profile != null)
            {
                profile.AppendIf(true, msg);
            }
            else
            {
                ChoTrace.Write(msg);
            }
        }