Beispiel #1
0
 /// <summary>
 /// Registers the switch.
 /// </summary>
 /// <param name="toggle">Toggle.</param>
 public void RegisterSwitch(Switch toggle)
 {
     Switches.Add(toggle);
 }
Beispiel #2
0
 /// <summary>
 /// Unregisters the switch.
 /// </summary>
 /// <param name="currentSwitch">Current switch.</param>
 public void UnregisterSwitch(Switch currentSwitch)
 {
     Switches.Remove(currentSwitch);
 }