예제 #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;
 }