public LightContentDialog(HueLamp light, Network network)
 {
     this.InitializeComponent();
     this.light = light;
     this.network = network;
     this.DataContext = light;
 }
Exemple #2
0
 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;
 }
Exemple #4
0
        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();
 }
 public CustomListItem(HueLamp light, Network network)
 {
     this.InitializeComponent();
     this.light = light;
     this.network = network;
 }
Exemple #7
0
 public static async void showLightDialog(HueLamp light, Network network)
 {
     ContentDialog c = new LightContentDialog(light, network);
     await c.ShowAsync();
 }