Beispiel #1
0
 public void Init(UserTaskOpEventContainer eventContainer)
 {
     eventContainer.SendUserTasks  += new SendUserTasksDelegete(eventContainer_SendUserTasks);
     eventContainer.UpdateUserTask += new UpdateUserTaskDelegete(eventContainer_UpdateUserTask);
     eventContainer.DeleteUserAccomplishedTasks += new DeleteUserAccomplishedTasksDelegete(eventContainer_DeleteUserAccomplishedTasks);
     eventContainer.DeleteUserTasks             += new DeleteUserTasksDelegete(eventContainer_DeleteUserTasks);
     eventContainer.SetUserTasksAccomplished    += new SetUserTasksAccomplishedDelegete(eventContainer_SetUserTasksAccomplished);
 }
 public void Init(UserTaskOpEventContainer eventContainer)
 {
     eventContainer.SendUserTasks += new SendUserTasksDelegete(eventContainer_SendUserTasks);
     eventContainer.UpdateUserTask += new UpdateUserTaskDelegete(eventContainer_UpdateUserTask);
     eventContainer.DeleteUserAccomplishedTasks += new DeleteUserAccomplishedTasksDelegete(eventContainer_DeleteUserAccomplishedTasks);
     eventContainer.DeleteUserTasks += new DeleteUserTasksDelegete(eventContainer_DeleteUserTasks);
     eventContainer.SetUserTasksAccomplished += new SetUserTasksAccomplishedDelegete(eventContainer_SetUserTasksAccomplished);
 }
Beispiel #3
0
 public void Init(UserTaskOpEventContainer eventContainer)
 {
     eventContainer.BeforeSendUserTasks         += eventContainer_BeforeSendUserTasks;
     eventContainer.SendUserTasks               += eventContainer_SendUserTasks;
     eventContainer.SetUserTasksAccomplished    += eventContainer_SetUserTasksAccomplished;
     eventContainer.UpdateUserTask              += eventContainer_UpdateUserTask;
     eventContainer.DeleteUserAccomplishedTasks += eventContainer_DeleteUserAccomplishedTasks;
     eventContainer.DeleteUserTasks             += eventContainer_DeleteUserTasks;
 }
        private UserOpContext InitEventContexts()
        {
            UserOpContext contexts = new UserOpContext();

            foreach (IUserTaskOperation op in UserTaskOperationSettings.GetConfig().Operations)
            {
                UserTaskOpEventContainer container = new UserTaskOpEventContainer();

                op.Init(container);
                contexts.EventContainers.Add(container);
            }

            return(contexts);
        }
		private UserOpContext InitEventContexts()
		{
			UserOpContext contexts = new UserOpContext();

			foreach (IUserTaskOperation op in UserTaskOperationSettings.GetConfig().Operations)
			{
				UserTaskOpEventContainer container = new UserTaskOpEventContainer();

				op.Init(container);
				contexts.EventContainers.Add(container);
			}

			return contexts;
		}