Exemple #1
0
 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);
 }
Exemple #2
0
        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);
        }