示例#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();
 }