/// <summary>
 /// Initializes a new instance of the <see cref="Products" /> class with values from Product from parameters box.
 /// </summary>
 /// <param name="p">Object of class Product.</param>
 public Products(Products p)
 {
     this.product = p.product;
     this.amount = p.amount;
 }