protected override void Dispose(bool disposing) { if (control != null) { control.ValueChanged -= control_ValueChanged; control = null; } base.Dispose(disposing); }
protected override object CreateControlCore() { control = new PreSchoolControl(); control.ValueChanged += control_ValueChanged; return(control); }