/// <summary>Resets state when an asynchronous conversion completes.</summary> /// <param name="sender">Ignored.</param> /// <param name="e">Ignored.</param> private void ResetWhenConversionComplete(object sender, ConversionCompletedEventArgs e) { _asyncRunning = false; }
private void converter_ConversionComplete(object sender, ConversionCompletedEventArgs e) { // Close the form on completion, notifying the user of any errors in the process if (e.Error != null) { MessageBox.Show(this, e.Error.Message, Assembly.GetEntryAssembly().GetName().Name, MessageBoxButtons.OK, MessageBoxIcon.Error); } Close(); }