示例#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);
 }
示例#2
0
文件: data.cs 项目: ruo2012/samples-1
 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;
 }