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)); }
public void PrintHandler(object sender, PrintArgs args) { Console.WriteLine(args.Text); }