Ejemplo n.º 1
0
        /// <summary>
        /// Releases unmanaged and - optionally - managed resources.
        /// </summary>
        /// <param name="disposing"><c>true</c> to release both managed and unmanaged resources; <c>false</c> to release only unmanaged resources.</param>
        protected virtual void Dispose(bool disposing)
        {
            if (disposing)
            {
                // free managed resources..
                Voikko?.Dispose();
            }

            // free native resources if there are any..
            // NONE (That I know of)..
        }
Ejemplo n.º 2
0
 private void FormMain_FormClosing(object sender, FormClosingEventArgs e)
 {
     Voikko?.Dispose();
     SpellChecker.SpellCheckLocationChanged -= SpellChecker_SpellCheckLocationChanged;
 }