internal ConditionOperatorRegistration(BaseConditionOperator conditionOperator, Plugin plugin) { ConditionOperator = conditionOperator; Plugin = plugin; Plugin.Disabled += OnDisabled; }
private void ConditionOperatorStoreOnConditionOperatorAdded(object?sender, ConditionOperatorStoreEvent e) { BaseConditionOperator conditionOperator = e.Registration.ConditionOperator; if (Entity.OperatorPluginGuid == conditionOperator.Plugin !.Guid && Entity.OperatorType == conditionOperator.GetType().Name) { UpdateOperator(conditionOperator); } }