Exemple #1
0
        public void PrintHandler(object sender, PrintArgs args)
        {
            using (StreamWriter sw = File.AppendText(this.file))
                sw.WriteLine(args.Text);

            Thread.Sleep(new Random().Next(1000, 3000));
        }
Exemple #2
0
 public void PrintHandler(object sender, PrintArgs args)
 {
     Console.WriteLine(args.Text);
 }