static void Main(string[] args) { var printer = new Printer.Printer(); printer.Multiprint(new string[] { "message one", "message two" }); var colourPrinter = new ColourPrinter(); colourPrinter.Multiprint(new string[] { "colour message one", "colour message two" }, ConsoleColor.DarkCyan); var photoPrinter = new PhotoPrinter(); photoPrinter.Multiprint(new Image[] { Image.FromFile("maidukov1.jpg"), Image.FromFile("capricorn.png") }); Console.ReadLine(); }
static void Main(string[] args) { var printer = new Printer(); printer.Multiprint(new string[] { "text1", "text2" }); var cprinter = new ColourPrinter(); cprinter.Multiprint(new string[] { "colortext1", "colortext2" }, ConsoleColor.DarkYellow); var pprinter = new PhotoPrinter(); pprinter.Multiprint(new string[] { "photo printer text 1", "photo printer text 2" }, "PHOTO"); Console.ReadLine(); }