コード例 #1
0
        public static void Print(CanonPrinter p1)
        {
            Log("Print started");
            var o = new OpenFileDialog();

            o.ShowDialog();
            var f = File.OpenRead(o.FileName);

            p1.Print(f);
            Log("Print finished");
        }
コード例 #2
0
 private static void Print(CanonPrinter canonPrinter)
 {
     PrinterManager.Print(canonPrinter);
     PrinterManager.Log("Printed on Canon");
 }