Ejemplo n.º 1
0
        void HandleActivityStatusChanged(object sender, ActivityStatusChangedEventArgs e)
        {
            if (ActivityStatusChanged != null)
            {
                //bubble the activity status change..
                ActivityStatusChanged(sender, e);
            }

            if (e.NewStatus == ActivityStatus.Cancelled)
            {
                //done cancelling,
                activities.Remove(sender as IActivity);
            }
        }
Ejemplo n.º 2
0
        void TaskTaskCompleted(object sender, EventArgs e)
        {
            var task = (ASynchTask)sender;

            Debug.WriteLine(string.Format("Finished activity {0}", task.Activity.Name));
            runningTasks.Remove(task);
            OnTaskCompleted(task);
            StartTaskIfPossible();

            if (runningTasks.Count == 0)
            {
                OnIsRunningChanged();
            }
            activities.Remove(task.Activity);
        }
Ejemplo n.º 3
0
        public virtual bool Remove(object o)
        {
            ClassImplementingIEventedList child = (ClassImplementingIEventedList)o;

            return(Children.Remove(child));
        }