minor ajustments

This commit is contained in:
Pilzinsel64
2024-11-15 11:34:30 +01:00
parent f70e07bd2c
commit 0cb7a15909
5 changed files with 27 additions and 30 deletions

View File

@@ -2,24 +2,24 @@
public static class PluginFeatureControllerExtensions
{
public static IControlManager ApplyControlManager(this PluginFeatureController @this, string featureType, Control control)
public static IControlListener ApplyControlManager(this PluginFeatureController @this, string featureType, Control control)
{
return ApplyControlManager(@this, featureType, control, true, true);
}
public static IControlManager ApplyControlManager(this PluginFeatureController @this, string featureType, Control control, PluginFunctionParameter? parameter)
public static IControlListener ApplyControlManager(this PluginFeatureController @this, string featureType, Control control, PluginFunctionParameter? parameter)
{
return ApplyControlManager(@this, featureType, control, true, true, parameter);
}
public static IControlManager ApplyControlManager(this PluginFeatureController @this, string featureType, Control control, bool recursive, bool autoTrack)
public static IControlListener ApplyControlManager(this PluginFeatureController @this, string featureType, Control control, bool recursive, bool autoTrack)
{
return ApplyControlManager(@this, featureType, control, recursive, autoTrack, null);
}
public static IControlManager ApplyControlManager(this PluginFeatureController @this, string featureType, Control control, bool recursive, bool autoTrack, PluginFunctionParameter? parameter)
public static IControlListener ApplyControlManager(this PluginFeatureController @this, string featureType, Control control, bool recursive, bool autoTrack, PluginFunctionParameter? parameter)
{
var manager = new ControlManager(@this.Features.Get(featureType).OfType<ControlFeature>(), control, recursive);
var manager = new ControlListener(@this.Features.Get(featureType).OfType<ControlListenerFeature>(), control, recursive);
if (autoTrack)
manager.Track();