public override bool Equals(object obj) { if (obj != null) { if (!(obj is Installation)) { Installation installation = obj as Installation; return((base.Equals(installation)) && (this.cost == installation.cost)); } else { return(false); } } else { return(false); } }
public static void AddInstallation(Installation installation, int orderID) { DataHandler.AddInstallation(installation, orderID); }
public Order(int orderID, string clientID, int paymentMethod, DateTime orderDate, bool delivered, double price, Administrator administrator, Installation installation, List <OrderDetail> orderDetails) { this.orderID = orderID; this.clientID = clientID; this.paymentMethod = paymentMethod; this.orderDate = orderDate; this.delivered = delivered; this.price = price; this.administrator = administrator; this.installation = installation; this.orderDetails = orderDetails; }