protected void rptFlight_ItemDataBound(object sender, RepeaterItemEventArgs e) { if (e == null) { throw new ArgumentNullException(nameof(e)); } Controls_mfbSignature sig = (Controls_mfbSignature)e.Item.FindControl("mfbSignature"); sig.Flight = (LogbookEntryDisplay)e.Item.DataItem; }
protected void rptFlight_ItemDataBound(object sender, RepeaterItemEventArgs e) { if (e == null) { throw new ArgumentNullException("e"); } LogbookEntryDisplay led = (LogbookEntryDisplay)e.Item.DataItem; Controls_mfbImageList mfbil = (Controls_mfbImageList)e.Item.FindControl("mfbilFlights"); mfbil.Key = led.FlightID.ToString(CultureInfo.InvariantCulture); mfbil.Refresh(true, false); Controls_mfbSignature sig = (Controls_mfbSignature)e.Item.FindControl("mfbSignature"); sig.Flight = led; }