Example #1
0
 public void Print(IPrintDriver pd, Object o)
 {
     foreach (Road road in roads)
     {
         road.Print(pd, o);
     }
 }
Example #2
0
 public Document(IPrintDriver p, string n)
 {
     printDriver = p;
     name        = n;
 }
        //public void AddRoadItem(RoadItem roadItem)
        //{
        //    roadItem.SetCurrentRoad(this);
        //    RoadItem currentItem = head;
        //    while (currentItem.GetNext() != null)
        //    {
        //        currentItem = currentItem.GetNext();
        //        if (currentItem.GetMileMarker() > roadItem.GetMileMarker())
        //        {
        //            InsertNewItemBefore(currentItem, roadItem);
        //            return;
        //        }
        //    }
        //    InsertNewItemAfter(currentItem, roadItem);
        //}

        public void Print(IPrintDriver print, Object o)
        {
            print.PrintRoad(this, o);
        }
Example #4
0
        public void DoPrint()
        {
            IPrintDriver driver = _factory.GetPrintDriver();

            driver.Print();
        }