예제 #1
0
        public void PrintJob(PrintJob job)
        {
            if (!Initialized)
            {
                Initialize();
            }
            StartDocument();
            Stream renderedDocument = RenderDocument(job);

            WriteDocumentToDevice(renderedDocument);
            EndDocument();
        }
예제 #2
0
 ////protected abstract void PrintJob(PrintJob job);        ////2.不再在继承体系中了,通过代理实现
 public void PrintJob(PrintJob job)
 {
     device.PrintJob(job);
 }
예제 #3
0
 //protected override void PrintJob(PrintJob job)
 //{
 //    if (!Initialized) Initialize();
 //    StartDocument();
 //    Stream renderedDocument = RenderDocument(job);
 //    WriteDocumentToDevice(renderedDocument);
 //    EndDocument();
 //}
 protected override Stream RenderDocument(PrintJob job)
 {
     //device specific code
     throw new NotImplementedException();
 }
예제 #4
0
 protected override Stream RenderDocument(PrintJob job)
 {
     throw new NotImplementedException();
 }
예제 #5
0
 protected abstract Stream RenderDocument(PrintJob job);