コード例 #1
0
        public void Clear()
        {
            while (steps_.Count != 0)
            {
                DeleteStepNoCallback(steps_[0]);
            }

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

                //stepCount = 6481;

                //stepCount = 9328;
#endif


                StepsChanged?.Invoke((uint)stepCount, TimePassed, Distance);
            }
コード例 #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);
        }
コード例 #4
0
 public void DeleteStep(Step s)
 {
     DeleteStepNoCallback(s);
     StepsChanged?.Invoke();
 }