Пример #1
0
 public void Init(OguDataOperationEventContainer eventContainer)
 {
     eventContainer.BeforeUpdateObjects        += new BeforeUpdateObjectsHandler(eventContainer_BeforeUpdateObjects);
     eventContainer.UpdateObjects              += new UpdateObjectsHandler(eventContainer_UpdateObjects);
     eventContainer.BeforeInsertObjects        += new BeforeInsertObjectsHandler(eventContainer_BeforeInsertObjects);
     eventContainer.InsertObjects              += new InsertObjectsHandler(eventContainer_InsertObjects);
     eventContainer.BeforeLogicDeleteObjects   += new BeforeLogicDeleteObjectsHandler(eventContainer_BeforeLogicDeleteObjects);
     eventContainer.LogicDeleteObjects         += new LogicDeleteObjectsHandler(eventContainer_LogicDeleteObjects);
     eventContainer.BeforeFurbishDeleteObjects += new BeforeFurbishDeleteObjectsHandler(eventContainer_BeforeFurbishDeleteObjects);
     eventContainer.FurbishDeleteObjects       += new FurbishDeleteObjectsHandler(eventContainer_FurbishDeleteObjects);
     eventContainer.BeforeRealDeleteObjects    += new BeforeRealDeleteObjectsHandler(eventContainer_BeforeRealDeleteObjects);
     eventContainer.RealDeleteObjects          += new RealDeleteObjectsHandler(eventContainer_RealDeleteObjects);
     eventContainer.BeforeInitPassword         += new BeforeInitPasswordHandler(eventContainer_BeforeInitPassword);
     eventContainer.InitPassword             += new InitPasswordHandler(eventContainer_InitPassword);
     eventContainer.BeforeResetPassword      += new BeforeResetPasswordHandler(eventContainer_BeforeResetPassword);
     eventContainer.ResetPassword            += new ResetPasswordHandler(eventContainer_ResetPassword);
     eventContainer.BeforeMoveObjects        += new BeforeMoveObjectsHandler(eventContainer_BeforeMoveObjects);
     eventContainer.MoveObjects              += new MoveObjectsHandler(eventContainer_MoveObjects);
     eventContainer.BeforeSortObjects        += new BeforeSortObjectsHandler(eventContainer_BeforeSortObjects);
     eventContainer.SortObjects              += new SortObjectsHandler(eventContainer_SortObjects);
     eventContainer.BeforeGroupSortObjects   += new BeforeGroupSortObjectsHandler(eventContainer_BeforeGroupSortObjects);
     eventContainer.GroupSortObjects         += new GroupSortObjectsHandler(eventContainer_GroupSortObjects);
     eventContainer.BeforeSetUserMainDuty    += new BeforeSetUserMainDutyHandler(eventContainer_BeforeSetUserMainDuty);
     eventContainer.SetUserMainDuty          += new SetUserMainDutyHandler(eventContainer_SetUserMainDuty);
     eventContainer.BeforeDelUsersFromGroups += new BeforeDelUsersFromGroupsHandler(eventContainer_BeforeDelUsersFromGroups);
     eventContainer.DelUsersFromGroups       += new DelUsersFromGroupsHandler(eventContainer_DelUsersFromGroups);
     eventContainer.BeforeAddObjectsToGroups += new BeforeAddObjectsToGroupsHandler(eventContainer_BeforeAddObjectsToGroups);
     eventContainer.AddObjectsToGroups       += new AddObjectsToGroupsHandler(eventContainer_AddObjectsToGroups);
     eventContainer.BeforeSetSecsToLeader    += new BeforeSetSecsToLeaderHandler(eventContainer_BeforeSetSecsToLeader);
     eventContainer.SetSecsToLeader          += new SetSecsToLeaderHandler(eventContainer_SetSecsToLeader);
     eventContainer.BeforeDelSecsOfLeader    += new BeforeDelSecsOfLeaderHandler(eventContainer_BeforeDelSecsOfLeader);
     eventContainer.DelSecsOfLeader          += new DelSecsOfLeaderHandler(eventContainer_DelSecsOfLeader);
 }
Пример #2
0
        public void Init(OguDataOperationEventContainer eventContainer)
        {
			eventContainer.BeforeUpdateObjects += new BeforeUpdateObjectsHandler(eventContainer_BeforeUpdateObjects);
			eventContainer.UpdateObjects += new UpdateObjectsHandler(eventContainer_UpdateObjects);
            eventContainer.BeforeInsertObjects += new BeforeInsertObjectsHandler(eventContainer_BeforeInsertObjects);
            eventContainer.InsertObjects += new InsertObjectsHandler(eventContainer_InsertObjects);
            eventContainer.BeforeLogicDeleteObjects += new BeforeLogicDeleteObjectsHandler(eventContainer_BeforeLogicDeleteObjects);
            eventContainer.LogicDeleteObjects += new LogicDeleteObjectsHandler(eventContainer_LogicDeleteObjects);
			eventContainer.BeforeFurbishDeleteObjects += new BeforeFurbishDeleteObjectsHandler(eventContainer_BeforeFurbishDeleteObjects);
			eventContainer.FurbishDeleteObjects += new FurbishDeleteObjectsHandler(eventContainer_FurbishDeleteObjects);
			eventContainer.BeforeRealDeleteObjects += new BeforeRealDeleteObjectsHandler(eventContainer_BeforeRealDeleteObjects);
			eventContainer.RealDeleteObjects += new RealDeleteObjectsHandler(eventContainer_RealDeleteObjects);
			eventContainer.BeforeInitPassword += new BeforeInitPasswordHandler(eventContainer_BeforeInitPassword);
			eventContainer.InitPassword += new InitPasswordHandler(eventContainer_InitPassword);
			eventContainer.BeforeResetPassword += new BeforeResetPasswordHandler(eventContainer_BeforeResetPassword);
			eventContainer.ResetPassword += new ResetPasswordHandler(eventContainer_ResetPassword);
			eventContainer.BeforeMoveObjects += new BeforeMoveObjectsHandler(eventContainer_BeforeMoveObjects);
			eventContainer.MoveObjects += new MoveObjectsHandler(eventContainer_MoveObjects);
			eventContainer.BeforeSortObjects += new BeforeSortObjectsHandler(eventContainer_BeforeSortObjects);
			eventContainer.SortObjects += new SortObjectsHandler(eventContainer_SortObjects);
			eventContainer.BeforeGroupSortObjects += new BeforeGroupSortObjectsHandler(eventContainer_BeforeGroupSortObjects);
			eventContainer.GroupSortObjects += new GroupSortObjectsHandler(eventContainer_GroupSortObjects);
			eventContainer.BeforeSetUserMainDuty += new BeforeSetUserMainDutyHandler(eventContainer_BeforeSetUserMainDuty);
			eventContainer.SetUserMainDuty += new SetUserMainDutyHandler(eventContainer_SetUserMainDuty);
			eventContainer.BeforeDelUsersFromGroups += new BeforeDelUsersFromGroupsHandler(eventContainer_BeforeDelUsersFromGroups);
			eventContainer.DelUsersFromGroups += new DelUsersFromGroupsHandler(eventContainer_DelUsersFromGroups);
			eventContainer.BeforeAddObjectsToGroups += new BeforeAddObjectsToGroupsHandler(eventContainer_BeforeAddObjectsToGroups);
			eventContainer.AddObjectsToGroups += new AddObjectsToGroupsHandler(eventContainer_AddObjectsToGroups);
			eventContainer.BeforeSetSecsToLeader += new BeforeSetSecsToLeaderHandler(eventContainer_BeforeSetSecsToLeader);
			eventContainer.SetSecsToLeader += new SetSecsToLeaderHandler(eventContainer_SetSecsToLeader);
			eventContainer.BeforeDelSecsOfLeader += new BeforeDelSecsOfLeaderHandler(eventContainer_BeforeDelSecsOfLeader);
			eventContainer.DelSecsOfLeader += new DelSecsOfLeaderHandler(eventContainer_DelSecsOfLeader);
        }
Пример #3
0
        private static DataOpContext InitEventContexts()
        {
            DataOpContext contexts = new DataOpContext();

            foreach (IOguDataOperation op in OguDataOperationSettings.GetConfig().Operations)
            {
                OguDataOperationEventContainer container = new OguDataOperationEventContainer();

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

            return(contexts);
        }
Пример #4
0
		private static DataOpContext InitEventContexts()
		{
			DataOpContext contexts = new DataOpContext();

			foreach (IOguDataOperation op in OguDataOperationSettings.GetConfig().Operations)
			{
				OguDataOperationEventContainer container = new OguDataOperationEventContainer();

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

			return contexts;
		}