async void onSwitchValueChanged(object sender, ToggledEventArgs args) { var thisSwitch = (Switch)sender; await lifxManager.setPower(thisSwitch.IsToggled, thisBulb.Label); }