/// <summary> /// Clean up any resources being used. /// </summary> /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> protected override void Dispose(bool disposing) { if (disposing) { _asyncLoader.Dispose(); _filterRevisionsHelper.Dispose(); _filterBranchHelper.Dispose(); _formBrowseMenus.Dispose(); components?.Dispose(); } base.Dispose(disposing); }
/// <summary> /// Clean up any resources being used. /// </summary> /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> protected override void Dispose(bool disposing) { if (disposing) { _asyncLoader.Dispose(); // if the form was instantiated by the translation app, all of the following would be null _filterRevisionsHelper?.Dispose(); _filterBranchHelper?.Dispose(); _formBrowseMenus?.Dispose(); components?.Dispose(); } base.Dispose(disposing); }
/// <summary> /// Clean up any resources being used. /// </summary> /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> protected override void Dispose(bool disposing) { if (disposing) { _asyncLoader.Cancel(); _asyncLoader.Dispose(); _filterRevisionsHelper.Dispose(); _filterBranchHelper.Dispose(); _formBrowseMenus.Dispose(); if (components != null) { components.Dispose(); } } base.Dispose(disposing); }