private void TrackChanges(bool track) { foreach (Control ctrl in grpRatings.Controls) { if (ctrl.GetType() == typeof(RatingsItem)) { RatingsItem ri = (RatingsItem)ctrl; ri.TrackChanges = track; } } }
public void EnableControls(bool enable) { foreach (Control ctrl in grpRatings.Controls) { if (ctrl.GetType() == typeof(RatingsItem)) { RatingsItem ri = (RatingsItem)ctrl; ri.EnableControls(enable); } } }