protected override void Dispose(bool disposing) { if (disposing) { if (!RevisionListBox.IsDisposed) { RevisionListBox.Clear(); } } base.Dispose(disposing); }
public RevisionLogBinding(ILogSource logSource, RevisionListBox revisionListBox, LogOptions logOptions) { Verify.Argument.IsNotNull(logSource, nameof(logSource)); Verify.Argument.IsNotNull(revisionListBox, nameof(revisionListBox)); Verify.Argument.IsNotNull(logOptions, nameof(logOptions)); _logSource = logSource; _revisionListBox = revisionListBox; _logOptions = logOptions; Progress = _revisionListBox.ProgressMonitor; }