Alarm system anticode example in c#