public void Clear() { while (steps_.Count != 0) { DeleteStepNoCallback(steps_[0]); } StepsChanged?.Invoke(); StepProgression = new SequentialStepProgression(); }
private void DailyStepQueryHandler(nint stepCount, NSError error) { #if DEBUG //stepCount = 1245; //stepCount = 6481; //stepCount = 9328; #endif StepsChanged?.Invoke((uint)stepCount, TimePassed, Distance); }
public Step InsertStep(int at, Step s = null) { if (s == null) { s = new Step(); } steps_.Insert(at, s); StepProgression?.StepInserted(at, s); s.Added(); s.StepNameChanged += OnStepNameChanged; StepsChanged?.Invoke(); return(s); }
public void DeleteStep(Step s) { DeleteStepNoCallback(s); StepsChanged?.Invoke(); }