예제 #1
0
파일: BLShop.cs 프로젝트: sagitab/FlyPack
        /// <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);
        }
예제 #2
0
파일: Point.cs 프로젝트: sagitab/FlyPack
 /// <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));
 }
예제 #3
0
 public override string ToString()
 {
     return($"{FirstName} {LastName} Deer {BlShop.GetShopById(ShopId).ShopName} Manager");
 }
예제 #4
0
파일: BLShop.cs 프로젝트: sagitab/FlyPack
        public override bool Equals(object obj)
        {
            BlShop shop = (BlShop)obj;

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