Example #1
0
        public void GroupGoToSceneTest()
        {
            Controller.AddUnitToGroup(Controller.AllLights[0], 0);
            Controller.AddUnitToGroup(Controller.AllLights[1], 0);
            Controller.AddUnitToGroup(Controller.AllLights[2], 0);
            Controller.GroupGoToScene(0, Controller.scenes[2]);

            for (int i = 0; i < 3; i++)
            {
                Assert.AreEqual(Controller.scenes[2] / 100, Controller._groups[0].GroupOfLights[i].ForcedLightlevel);
            }
        }
Example #2
0
 //sets the forced lightlevel of the current group to the wanted scene
 //then resets to main menu
 private void GroupGoToScene(object sender, EventArgs e)
 {
     DALIController.GroupGoToScene(_currentGroup, DALIController.scenes[_buttons.IndexOf((Button)sender)]);
     _currentGroup = -1;
     SetUpFirstButtons();
 }