private void DefaultPluginManagerOnLoadException(object sender, PluginLoadExceptionEventArgs pluginLoadExceptionEventArgs) { if (pluginLoadExceptionEventArgs.Exception.GetType() == typeof(PluginIncompatibleException)) { TaskDialogHelper.ShowMessage("Incompatible plugin", $"The plugin \"{pluginLoadExceptionEventArgs.PluginName}\" is incompatible with this version of Athame.", icon: TaskDialogStandardIcon.Error, buttons: TaskDialogStandardButtons.Ok, owner: Handle); } else { pluginLoadExceptions.Add(pluginLoadExceptionEventArgs.Exception); } pluginLoadExceptionEventArgs.Continue = true; }
private void DefaultPluginManagerOnLoadException(object sender, PluginLoadExceptionEventArgs pluginLoadExceptionEventArgs) { pluginLoadExceptions.Add(pluginLoadExceptionEventArgs.Exception); pluginLoadExceptionEventArgs.Continue = true; }