Esempio n. 1
0
        /// <summary>
        /// return true if all the shop in the list is same
        /// </summary>
        /// <param name="shops"></param>
        /// <returns>bool</returns>
        public static bool isAllSameShop(List <BlShop> shops)
        {
            BlShop firstShop = shops[0];

            foreach (var shop in shops)
            {
                if (!firstShop.Equals(shop))
                {
                    return(false);
                }
            }
            return(true);
        }
Esempio n. 2
0
 /// <summary>
 /// return the arrive time from delivery position to the  shop
 /// </summary>
 /// <param name="startPoint"></param>
 /// <param name="customersAddress"></param>
 /// <param name="shop"></param>
 /// <returns></returns>
 public double ArriveTimeShop(BlCustomersAddress customersAddress, BlShop shop)
 {
     return(this.Time(customersAddress.Location) + customersAddress.Location.Time(shop.Location));
 }
Esempio n. 3
0
 public override string ToString()
 {
     return($"{FirstName} {LastName} Deer {BlShop.GetShopById(ShopId).ShopName} Manager");
 }
Esempio n. 4
0
        public override bool Equals(object obj)
        {
            BlShop shop = (BlShop)obj;

            return(shop != null && shop.GetHashCode() == this.GetHashCode());
        }