Beispiel #1
0
        /// <summary>
        /// Method that edit the selected activity from the ActivityList, called by the equivalent command.
        /// </summary>
        private async void EditActivity()
        {
            if (SelectedActivity != null && ActivityList.Contains(SelectedActivity))
            {
                int Index = ActivityList.IndexOf(SelectedActivity);
                _inserted = false;
                await AddActivity(Index);

                if (_inserted)
                {
                    ActivityList.Remove(SelectedActivity);
                }
            }
        }