Example #1
0
 protected override void OnClosed(EventArgs e)
 {
     base.OnClosed(e);
     if (_dataContext != null)
     {
         _dataContext.Dispose();
     }
 }
Example #2
0
 protected override void OnClosed(EventArgs e)
 {
     base.OnClosed(e);
     _dataContext?.Dispose();
 }