Exemplo n.º 1
0
 private void OrganismAddForm_FormClosing(object sender, FormClosingEventArgs e)
 {
     if (_addingContext != null)
     {
         _addingContext.Dispose();
     }
     if (_suggestionsContext != null)
     {
         _suggestionsContext.Dispose();
     }
 }
Exemplo n.º 2
0
 private void SearchingForm_FormClosing(object sender, FormClosingEventArgs e)
 {
     if (_searchingContext != null)
     {
         _searchingContext.Dispose();
     }
     if (_suggestionsContext != null)
     {
         _suggestionsContext.Dispose();
     }
 }
Exemplo n.º 3
0
 private void AddingForm_FormClosing(object sender, FormClosingEventArgs e)
 {
     if (_photoAddingContext != null)
     {
         _photoAddingContext.Dispose();
     }
     if (_photoInfoSuggestionsContext != null)
     {
         _photoInfoSuggestionsContext.Dispose();
     }
     if (_photoContentContext != null)
     {
         _photoContentContext.Dispose();
     }
 }