Exemplo n.º 1
0
        public void Clear()
        {
            while (steps_.Count != 0)
            {
                DeleteStepNoCallback(steps_[0]);
            }

            StepsChanged?.Invoke();
            StepProgression = new SequentialStepProgression();
        }
Exemplo n.º 2
0
            private void DailyStepQueryHandler(nint stepCount, NSError error)
            {
#if DEBUG
                //stepCount = 1245;

                //stepCount = 6481;

                //stepCount = 9328;
#endif


                StepsChanged?.Invoke((uint)stepCount, TimePassed, Distance);
            }
Exemplo n.º 3
0
        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);
        }
Exemplo n.º 4
0
 public void DeleteStep(Step s)
 {
     DeleteStepNoCallback(s);
     StepsChanged?.Invoke();
 }