示例#1
0
        public static void Write_notation_line(string text)
        {
            Console.ForegroundColor = ConsoleColor.Blue;
            Report_class.WriteLine(text);
            Console.ResetColor();
            StreamWriter writer = new StreamWriter(Error_file_name, true);

            writer.WriteLine(text);
            writer.Close();
        }
示例#2
0
 public static void Write_major_line(string text)
 {
     Report_class.WriteLine();
     Report_class.WriteLine("*******************************************************************************");
     Report_class.WriteLine(text);
     for (int i = 0; i < text.Length; i++)
     {
         Report_class.Write("*");
     }
     Report_class.WriteLine();
 }
示例#3
0
        public static void Write_code_imperfect_line(string text)
        {
            Console.ForegroundColor = ConsoleColor.DarkGreen;
            Report_class.WriteLine("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
            Report_class.WriteLine(text);
            Report_class.WriteLine("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
            Console.ResetColor();
            StreamWriter writer = new StreamWriter(Imperfect_code_file_name, true);

            writer.WriteLine(text);
            writer.Close();
        }
示例#4
0
        public static void Write_error_line(string text, params object[] add)
        {
            Console.ForegroundColor = ConsoleColor.Red;
            Report_class.WriteLine("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
            Report_class.WriteLine(text, add);
            Report_class.WriteLine("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
            Console.ResetColor();
            StreamWriter writer = new StreamWriter(Error_file_name, true);

            writer.WriteLine(text, add);
            writer.Close();
        }
示例#5
0
        public static void Write_major_line(string text, params object[] add)
        {
            Report_class.WriteLine();
            Report_class.WriteLine("*******************************************************************************");
            Report_class.WriteLine(text, add);
            int object_length = 0;

            foreach (object add_object in add)
            {
                object_length = +add_object.ToString().Length;
            }
            for (int i = 0; i < text.Length + object_length; i++)
            {
                Report_class.Write("*");
            }
            Report_class.WriteLine();
        }
示例#6
0
 public static void Write_analysis_end()
 {
     Report_class.WriteLine("Analysis finished, {0}, {1}", DateTime.Now.ToString("yyyy.MM.dd"), string.Format("{0:HH:mm:ss tt}", DateTime.Now));
     Report_class.WriteLine("-------------------------------------------------------------------------------");
     Report_class.WriteLine("-------------------------------------------------------------------------------");
 }