public ActivityService(ActivitySystem system, string ip, int port) { InitializeSevice(system, ip, port); ActivitySystem = system; ActivitySystem.ActivityAdded += ActivitySystem_ActivityAdded; ActivitySystem.ActivityChanged += ActivitySystem_ActivityChanged; ActivitySystem.ActivityRemoved += ActivitySystem_ActivityRemoved; ActivitySystem.DeviceAdded += ActivitySystem_DeviceAdded; ActivitySystem.DeviceChanged += ActivitySystem_DeviceChanged; ActivitySystem.DeviceRemoved += ActivitySystem_DeviceRemoved; ActivitySystem.UserAdded += ActivitySystem_UserAdded; ActivitySystem.UserChanged += ActivitySystem_UserChanged; ActivitySystem.UserRemoved += ActivitySystem_UserRemoved; ActivitySystem.ResourceAdded += ActivitySystem_ResourceAdded; ActivitySystem.ResourceChanged += ActivitySystem_ResourceChanged; ActivitySystem.ResourceRemoved += ActivitySystem_ResourceRemoved; ActivitySystem.NotificationAdded += ActivitySystem_NotificationAdded; ActivitySystem.NotificationChanged += ActivitySystem_NotificationChanged; ActivitySystem.NotificationRemoved += ActivitySystem_NotificationRemoved; ActivitySystem.FileResourceAdded += ActivitySystem_FileResourceAdded; ActivitySystem.FileResourceChanged += ActivitySystem_FileResourceChanged; ActivitySystem.FileResourceRemoved += ActivitySystem_FileResourceRemoved; Instance = this; }
void InitializeSevice(ActivitySystem system, string ip, int port) { ActivitySystem = system; Ip = ip; Port = port; Initialized(this, new EventArgs()); }