Ejemplo n.º 1
0
 // Constructer method for setting global variables to here-and-now data
 public MoveLamp(LampViewModel lamp, double v1, double v2)
 {
     this.lamp = lamp;
     this.v1 = v1;
     this.v2 = v2;
 }
Ejemplo n.º 2
0
 //Constructor
 public ChangeHeight(LampViewModel lamp, double heightDifference)
 {
     this.lamp = lamp;
     this.heightDifference = heightDifference;
 }
Ejemplo n.º 3
0
 //Constructor
 public ChangeBrightness(LampViewModel lamp, double brightnessDifference)
 {
     this.lamp = lamp;
     this.brightnessDifference = brightnessDifference;
 }
Ejemplo n.º 4
0
 // Constructor
 public ToggleLightOnLamp(LampViewModel lamp, bool lightsOn)
 {
     this.lamp = lamp;
     this.LightsOn = lightsOn;
 }