Esempio n. 1
0
 private Print GetPrintFromPhotoTray(Photo photo, PrintType printtype)
 {
     foreach (Print print in PhotoTray)
     {
         if (print.Photo == photo && print.PrintType == printtype)
         {
             return(print);
         }
     }
     return(null);
 }
Esempio n. 2
0
 public Print(Photo photo, PrintType printtype, int quantity)
 {
     Photo     = photo;
     PrintType = printtype;
     Quantity  = quantity;
 }
 public override string ToString() => PrintType.ToString();
 public PrintBase(BitmapSource photo, string description, double cost)
 {
     Photo     = photo;
     PrintType = new PrintType(description, cost);
     Quantity  = 0;
 }
 public PrintBase(BitmapSource photo, PrintType printtype, int quantity)
 {
     Photo     = photo;
     PrintType = printtype;
     Quantity  = quantity;
 }