public static MessageViewModel Error(string text, int goBackPages) { return(new MessageViewModel( title: Resources.SvError, text: text, backTitle: Resources.SvBack, nextTitle: null, backAction: () => { for (var i = 0; i < goBackPages; ++i) { Navigation.Back(); } }, nextAction: null)); }
public static bool Back() { if (current.Back()) { return(true); } else { point--; if (point < 0) { return(false); } current = ln[point]; current.Show(); return(true); } }