What do you mean by "hard coded"? Like this?


public enum States
{
OFF, ERROR, START, RESET, END
}

Yes, that is how an enum is suppose to function.