public void AddRatePlanSelectorItem(RatePlanSelectorItemControl control) { phRoomTypeSelectorControl.Controls.Add(control); control.RoomRateSelected += RoomTypeControl_RoomRateSelected; control.EditModeSelected += control_EditModeSelected; control.ShowRoomPhotoSelected += new RatePlanSelectorItemControl.ShowRoomPhotoEventHandler(control_ShowRoomPhotoSelected); }
public void AddRatePlanSelectorItem(RatePlanSelectorItemControl ucNewRatePlanSelectorItem) { if (lRatePlanSelectorItems == null) { lRatePlanSelectorItems = new List<RatePlanSelectorItemControl>(); } lRatePlanSelectorItems.Add(ucNewRatePlanSelectorItem); return; }