private void OrganismAddForm_FormClosing(object sender, FormClosingEventArgs e) { if (_addingContext != null) { _addingContext.Dispose(); } if (_suggestionsContext != null) { _suggestionsContext.Dispose(); } }
private void SearchingForm_FormClosing(object sender, FormClosingEventArgs e) { if (_searchingContext != null) { _searchingContext.Dispose(); } if (_suggestionsContext != null) { _suggestionsContext.Dispose(); } }
private void AddingForm_FormClosing(object sender, FormClosingEventArgs e) { if (_photoAddingContext != null) { _photoAddingContext.Dispose(); } if (_photoInfoSuggestionsContext != null) { _photoInfoSuggestionsContext.Dispose(); } if (_photoContentContext != null) { _photoContentContext.Dispose(); } }