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(); }
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(); }