private string GetEffectsInitializationString() { string evts = string.Empty; Effect[] effects = new Effect[] { ClickEffect, DblClickEffect, MouseDownEffect, MouseUpEffect, MouseOverEffect, MouseOutEffect, KeyPressEffect, EscKeyEffect }; for (int idx = 0; idx < effects.Length; idx++) { if (effects[idx] != null) { evts = StringHelper.ConditionalAdd( evts, "", ",", "['" + _handlerNames[idx] + "', 'effect', " + effects[idx].RenderString() + "]"); } } return evts; }
private string GetEffectsInitializationString() { string evts = string.Empty; Effect[] effects = new Effect[] { BlurEffect, FocusedEffect }; for (int idx = 0; idx < effects.Length; idx++) { if (effects[idx] != null) { evts = StringHelper.ConditionalAdd( evts, "", ",", "['" + _handlerNames[idx] + "', 'effect', " + effects[idx].RenderString() + "]"); } } return evts; }