Exemplo n.º 1
0
        void OnExpressionChanged(object sender, ExpressionChangedEventArgs e)
        {
            //LoggingService.LogInfo ("Expression changed @ index {0}: '{1}' -> '{2}'", e.Index, e.OldExpression, e.NewExpression);

            if (e.Index != -1)
            {
                expressions[e.Index] = e.NewExpression;
            }
            else
            {
                //LoggingService.LogWarning ("Failed to find old expression: '{0}'", e.OldExpression);
                expressions.Add(e.NewExpression);
            }
        }
Exemplo n.º 2
0
        void OnExpressionChanged(object sender, ExpressionChangedEventArgs e)
        {
            LoggingService.LogInfo("Expression changed: '{0}' -> '{1}'", e.OldExpression, e.NewExpression);
            int index = expressions.IndexOf(e.OldExpression);

            if (index != -1)
            {
                expressions[index] = e.NewExpression;
            }
            else
            {
                LoggingService.LogWarning("Failed to find old expression: {0}", e.OldExpression);
                expressions.Add(e.NewExpression);
            }
        }