Ejemplo n.º 1
0
 public Artikel(Product p, int aantal)
 {
     this.Code = p.Code;
     this.Naam = p.Naam;
     this.Prijs = p.Prijs;
     this.Aantal = aantal;
 }
Ejemplo n.º 2
0
        private void initProducten()
        {

            producten.Clear();
            //TODO
            StreamReader file = new StreamReader(path + "producten.txt");
            string lijn;
            while ((lijn = file.ReadLine()) != null)
            {
                string[] appart = lijn.Split('|');

               
                    Product pr = new Product();
                    pr.Code = Convert.ToInt32(appart[0]);
                    pr.Naam = appart[1];
                    pr.Prijs = Convert.ToDouble( appart[2]);
                    producten.Add(pr);
                
            }

            file.Close();
            

        }
Ejemplo n.º 3
0
        //template voor latere functionaliteit

        public Product(Product product)
        {
            this.Code = product.Code;
            this.Naam = product.Naam;
            this.Prijs = product.Prijs;
        }