Пример #1
0
        public override void ReverseInit(object returnedData)
        {
            Excercise        e   = returnedData as Excercise;
            ExcerciseChanged ech = returnedData as ExcerciseChanged;

            if (e != null)
            {
                AddExcerciseToPlan(e);
            }
            if (ech != null)
            {
                UpdateExcercise(ech);
            }
        }
Пример #2
0
        private void UpdateExcercise(ExcerciseChanged ech)
        {
            int index = Excercises.IndexOf(ClickedItem);

            Excercises[index] = ech.ChangedExcercise;
        }