示例#1
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();
 }
示例#2
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();
        }