Ejemplo n.º 1
0
 private void DisplayAction(TreeModel listStore, TreeIter row, PriceRuleAction action)
 {
     listStore.Foreach((model, path, iter) =>
     {
         model.SetValue(iter, 0, false);
         model.SetValue(iter, 2, string.Empty);
         return(false);
     });
     DisplayIndication(listStore, row, action);
 }
Ejemplo n.º 2
0
        public override AppResult Text(string text, bool exact)
        {
            DesiredText = text;

            if (resultIter.HasValue)
            {
                return(CheckForText(TModel, (TreeIter)resultIter, exact) ? this : null);
            }

            TModel.Foreach((m, p, i) => {
                if (CheckForText(m, i, exact))
                {
                    resultIter = i;
                    return(true);
                }

                return(false);
            });

            return(resultIter.HasValue ? this : null);
        }
Ejemplo n.º 3
0
        public override AppResult Text(string text, bool exact)
        {
            DesiredText = text;

            if (resultIter.HasValue)
            {
                return((AppResult)AutoTestService.CurrentSession.UnsafeSync(() => CheckForText(TModel, (TreeIter)resultIter, exact) ? this : null));
            }

            return((AppResult)AutoTestService.CurrentSession.UnsafeSync(() => {
                TModel.Foreach((m, p, i) => {
                    if (CheckForText(m, i, exact))
                    {
                        resultIter = i;
                        return true;
                    }

                    return false;
                });

                return resultIter.HasValue ? this : null;
            }));
        }