private void Form1_Paint(object sender, PaintEventArgs e) { if (!_buildingTask.IsCompleted) return; var g = e.Graphics; var printer = new WinFormPrinter(g, _layout.FontSize); g.Clear(Color.White); _document.PrintBy(printer); }
private void Form1_Paint(object sender, PaintEventArgs e) { if (!_buildingTask.IsCompleted) { return; } var g = e.Graphics; var printer = new WinFormPrinter(g, _layout.FontSize); g.Clear(Color.White); _document.PrintBy(printer); }