Exemple #1
0
 public MainViewModel(IHue hue, IImage img, IStateHandler handler)
 {
     _img                  = img;
     _hue                  = hue;
     _handler              = handler;
     _handler.ColorUpdate += _handler_ColorUpdate;
     _hue.StatusUpdate    += _hue_StatusUpdate;
     Task.Factory.StartNew(async() =>
     {
         await _hue.Init();
         Groups = await _hue.GetGroups();
     });
 }