예제 #1
0
        public override bool Equals(object obj)
        {
            if (obj == null || !(obj is Bouquet))
            {
                return(false);
            }
            Bouquet other = obj as Bouquet;

            return(this.id.Equals(other.id));
        }
 public void RemoveBouquet(Bouquet bouquet)
 {
     bouquets.Remove(bouquet);
 }
 public void AddBouquet(Bouquet bouquet)
 {
     this.bouquets.Add(bouquet);
 }