Beispiel #1
0
        internal ShowcaseStep NextStep(Context context)
        {
            if (position >= -1 && position < steps.Count - 1)
            {
                ++position;
                ShowcasePreferences.SetStatus(context, ShowcaseId, position);
                return(steps[position]);
            }
            else
            {
                SetFired(context, true);
            }

            return(null);
        }
Beispiel #2
0
 internal void LastStep(Context context)
 {
     position = Math.Max(-1, ShowcasePreferences.GetStatus(context, ShowcaseId) - 1);
 }
Beispiel #3
0
 public static void ResetAll(Context context)
 {
     ShowcasePreferences.ResetAll(context);
 }
Beispiel #4
0
 public static void Reset(Context context, string showcaseId)
 {
     ShowcasePreferences.Reset(context, showcaseId);
 }
Beispiel #5
0
 internal void SetFired(Context context, bool value)
 {
     ShowcasePreferences.SetFired(context, ShowcaseId, value);
 }
Beispiel #6
0
 internal bool HasFired(Context context)
 {
     return(ShowcasePreferences.HasFired(context, ShowcaseId));
 }