예제 #1
0
파일: Form1.cs 프로젝트: karak/Geovanni
 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);
 }
예제 #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);
        }