Esempio n. 1
0
 /// <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)
     {
         _autoCompleteCancellationTokenSource.Dispose();
         _customUnderlines.Dispose();
         if (components != null)
         {
             components.Dispose();
         }
     }
     base.Dispose(disposing);
 }
Esempio n. 2
0
 /// <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)
     {
         CancelAutoComplete();
         SpellCheckTimer.Stop();
         _autoCompleteCancellationTokenSource.Dispose();
         _customUnderlines?.Dispose();
         components?.Dispose();
         if (_autoCompleteListTask != null && _autoCompleteListTask.Status == TaskStatus.Canceled)
         {
             _autoCompleteListTask.Dispose();
         }
     }
     base.Dispose(disposing);
 }