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); }
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); }
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; })); }