private async void setRandomHue(object sender, object e) { if (lampFound) { await lampHelper.SetHueAsync((uint)rand.Next()); } }
private static async void LampHelper_LampFound_color(object sender, EventArgs e) { LampHelper lampHelper = sender as LampHelper; await lampHelper.SetHueAsync(color_value); }