Sets the Switch.SwitchSetting property to the integer equivalent of the Switch.Value property.
This method is called internally when the Switch.Value property of the switch changes. The method ensures that the properties relating to the switch's value reflect the new value.