public string DownloadKeys(SaleLinesItem product) { Random random = new Random(); string keys = "Keys for download: " + "\n"; string aantal = product.aantal; int a = int.Parse(aantal); for (int i = 0; i < a; i++) { keys = keys + "Key: " + base.stringgenerator(random.Next()) + "\n"; } return(keys); }
public Fysiekeverzending(Verzendingsinterface verz, SaleLinesItem product) : base(verz) { productnaam = product.productnaam; productinformatie = product.productdetails; aantal = product.aantal; }
public Digitaleverzending(Verzendingsinterface verz, SaleLinesItem product) : base(verz) { titel = product.productnaam; downloadlink = product.downloadlink; keys = DownloadKeys(product); }