To check if the name of the planet is changed, you can compare the Title column before the changes with the Title of the changed item.The changed values can be retrieved from the After Properties of the incoming properties argument.This will most likely work for 99.9% of all implementations, but why take the risk.There may be other code working some magic here as well, and by saving off the value and setting it back you do not interfere with anything else that may be going on. All we need to do is wrap our previous code in a Using statement: Viola! Update() fires, we are inside the scope of our Disabled Events Scope class which has disabled event firing.First, we declare a boolean to hold the original value of the Event Firing Enabled property.Now, in our constructor we save off the Event Firing Enabled value, then set it to false.Unfortunately, this is only working for certain fields.
You create two event receivers for the item Adding and item Updating events that verify that the title of the open position matches one of the approved titles in the Job Definitions list.
To prevent users from changing the name of the planet, you can develop a Item Updating event receiver.