Exemplo n.º 1
0
        //public Image Photo { get; set; }

        #endregion

        /// <summary>
        ///     Initializes a new instance of the Dish class to the value indicated
        ///     by the given parameters.
        /// </summary>
        ///
        /// <param name="name">Dish's name</param>
        /// <param name="size">Dish's size</param>
        /// <param name="price">Dish's price</param>
        /// <param name="kosher">Dish's kashrut</param>
        public Dish(string name, string description, SIZE size, double price = 0, KOSHER kosher = KOSHER.Rabanut, DISH_TYPE dishType = DISH_TYPE.Fish)
        {
            Name        = name;
            Description = description;
            Size        = size;
            Price       = price;
            Kosher      = kosher;
            DishType    = dishType;
        }
Exemplo n.º 2
0
 /// <summary>
 ///      Initializes a new instance of the Branch class to the value indicated
 ///      by the given parameters.
 /// </summary>
 public Branch(string name, string street, int houseNo, CITY city, int zipCode, string managerName, string phoneNumber, KOSHER kosher)
 {
     Add         = new Address();
     Name        = name;
     Add.Street  = street;
     Add.HouseNO = houseNo;
     Add.City    = city;
     Add.ZipCode = zipCode;
     ManagerName = managerName;
     PhoneNumber = phoneNumber;
     Kosher      = kosher;
 }