public LightContentDialog(HueLamp light, Network network) { this.InitializeComponent(); this.light = light; this.network = network; this.DataContext = light; }
public CustomListItem(HueLamp light, Network network) { this.InitializeComponent(); this.light = light; this.network = network; }
public object Convert(object value, Type targetType, object parameter, string language) { HueLamp lamp = (HueLamp)value; return(new SolidColorBrush(ColorUtil.HsvToRgb(lamp.Hue, lamp.Saturation, lamp.Brightness))); }
public static async void showLightDialog(HueLamp light, Network network) { ContentDialog c = new LightContentDialog(light, network); await c.ShowAsync(); }