/// <inheritdoc/> protected override object CreateControlCore() { editor = new SnapReportEditor(); ControlBindingProperty = "Report"; editor.AllowEdit = AllowEdit; AllowEdit.ResultValueChanged += AllowEdit_ResultValueChanged; editor.EditValueChanged += Editor_EditValueChanged; return editor; }
/// <inheritdoc/> protected override void Dispose(bool disposing) { if (disposing) { if (editor != null && !editor.IsDisposed) { try { editor.Dispose(); } catch { } } editor = null; } base.Dispose(disposing); }