// void application_LoggedOn(object sender, LogonEventArgs e) { Cdb.Notifications.NotificationsModule notifications = Application.Modules.FindModule <Cdb.Notifications.NotificationsModule>(); if (notifications != null) { notifications.NotificationObjects = new List <NotificationObjects>(); NotificationObjects objNotifObject = new NotificationObjects(); //Ticket objNotifObject.ObjectType = typeof(Ticket); objNotifObject.ObjectCriteria = "Type.Ticket_Type = 'Error'"; objNotifObject.IsNotificationForCreation = true; objNotifObject.IsNotificationForUpdation = true; notifications.NotificationObjects.Add(objNotifObject); //Comment objNotifObject = new NotificationObjects(); objNotifObject.ObjectType = typeof(TicketComment); objNotifObject.ObjectCriteria = ""; objNotifObject.IsNotificationForCreation = true; objNotifObject.IsNotificationForDeletion = true; notifications.NotificationObjects.Add(objNotifObject); } }
// //Saving private void ObjectSpace_ObjectSaving(object sender, ObjectManipulatingEventArgs e) { NotificationObjects objNotifyObj = module.NotificationObjects.Find(obj => obj.ObjectType == e.Object.GetType()); if (ObjectSpace != null && objNotifyObj != null) { IsNewObject = ObjectSpace.IsNewObject(objNotifyObj); IsDeleted = ObjectSpace.IsDeletedObject(objNotifyObj); } }