Beispiel #1
0
 public Switchstate Switchoff() //methods
 {
     if (state == Switchstate.on)
     {
         state = Switchstate.off;
     }
     return(state);
 }
Beispiel #2
0
 public Switch() //constructors
 {
     state = Switchstate.on;
 }