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