コード例 #1
0
        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);
        }
コード例 #2
0
 public Fysiekeverzending(Verzendingsinterface verz, SaleLinesItem product) : base(verz)
 {
     productnaam       = product.productnaam;
     productinformatie = product.productdetails;
     aantal            = product.aantal;
 }
コード例 #3
0
 public Digitaleverzending(Verzendingsinterface verz, SaleLinesItem product) : base(verz)
 {
     titel        = product.productnaam;
     downloadlink = product.downloadlink;
     keys         = DownloadKeys(product);
 }