Exemple #1
0
 /// <summary>
 /// To be called immediately before the plugin closes (e.g., if the plugin has a single main window, at the end of the close event of that form). <para />
 /// It expects an error flag (0 meaning no errors) to let the application know if the operation was successful or not. <para />
 /// The application will wait indefinitely for <see cref="PluginCallback.Finish(int)" /> to be called, so the plugin programmer must make sure that it is called when the plugin completes.
 /// </summary>
 /// <param name="errorFlag">An error flag (0 meaning no errors) to let the application know if the operation was successful or not.</param>
 protected void Finish(int errorFlag)
 {
     _pluginCallback?.Finish(errorFlag);
 }
 /// <summary>
 /// To be called immediately before the plugin closes (e.g., if the plugin has a single main window, at the end of the close event of that form). <para />
 /// It expects an error flag (0 meaning no errors) to let the application know if the operation was successful or not. <para />
 /// The application will wait indefinitely for <see cref="PluginCallback.Finish(int)" /> to be called, so the plugin programmer must make sure that it is called when the plugin completes.
 /// </summary>
 /// <param name="errorFlag">An error flag (0 meaning no errors) to let the application know if the operation was successful or not.</param>
 public void Finish(int errorFlag)
 {
     _pluginCallback.Finish(errorFlag);
 }