public static IPrint ResolvePrint(EnumPrintType type) { if (type == EnumPrintType.OnScreen) { return(new PrintOnScreen()); } else if (type == EnumPrintType.File) { return(new PrintOnFile()); } else if (type == EnumPrintType.Paper) { return(new PrintOnPaper()); } else { return(null); } }
public void Print(EnumPrintType printType) { handlePrint.Print(printType, TotalGoldPrice.ToString()); }