Beispiel #1
0
        public override int GetHashCode()
        {
            int hashCode = 683625434;

            hashCode = hashCode * -1521134295 + PharmacyID.GetHashCode();
            hashCode = hashCode * -1521134295 + ProductID.GetHashCode();
            return(hashCode);
        }
Beispiel #2
0
        /// <summary>
        /// Display the order information information
        /// </summary>
        /// <returns></returns>
        public string Display()
        {
            string str = String.Empty;

            str += "-----------------------------------------------------\n";
            str += "OrderID: " + this.ItemID.ToString() + "   Status: " + Status + "\n";
            str += "-- Cust. #: " + CustomerID.ToString() + "    ";
            str += "-- Pharm. ID #: " + PharmacyID.ToString() + "    ";
            str += "-- Deliv Co. #: " + DeliveryCompanyID.ToString() + "    ";
            str += "\n";

            //str += $"-- Food Items ({FoodItems.Count}): \n";
            //foreach (Food item in FoodItems)
            //    str += item.ToString() + "\n";

            //str += $"-- OTCMed Items ({OTCItems.Count}): \n";
            //foreach (OTCMed item in OTCItems)
            //    str += item.ToString() + "\n";

            return(str);
        }