public MainPage()
 {
     hh = new HueHandler();
     this.InitializeComponent();
     DataContext = new MainViewModel(hh);
     SystemNavigationManager.GetForCurrentView().BackRequested += OnBackRequested;
     PageTitle.Text = "Alle Hue Lampen";
     SystemNavigationManager.GetForCurrentView().AppViewBackButtonVisibility =
         MyFrame.CanGoBack ?
         AppViewBackButtonVisibility.Visible :
         AppViewBackButtonVisibility.Collapsed;
     MyFrame.Navigate(typeof(Lights), hh);
 }
 public MainPage()
 {
     hh = new HueHandler();
     this.InitializeComponent();
     DataContext = new MainViewModel(hh);
     SystemNavigationManager.GetForCurrentView().BackRequested += OnBackRequested;
     PageTitle.Text = "Alle Hue Lampen";
     SystemNavigationManager.GetForCurrentView().AppViewBackButtonVisibility =
        MyFrame.CanGoBack ?
        AppViewBackButtonVisibility.Visible :
        AppViewBackButtonVisibility.Collapsed;
     MyFrame.Navigate(typeof(Lights), hh);
 }
Exemple #3
0
 public HueGroup(HueHandler hh, String id, String OnLamp, String BrightnesLamp, String ColorLamp, String Sat, String x, String y, String CT, String alert, String effect, String ColorMode, String Reachable, String name, List<HueLamp> lamps)
 {
     this.hh = hh;
     this.id = id;
     try { this.OnLamp = Boolean.Parse(OnLamp); } catch { this.OnLamp = false; };
     this.BrightnesLamp = Int32.Parse(BrightnesLamp);
     this.ColorLamp = Int32.Parse(ColorLamp);
     this.Sat = Int32.Parse(Sat);
     this.x = x;
     this.y = y;
     this.CT = CT;
     this.alert = alert;
     this.effect = effect;
     this.colormode = ColorMode;
     this.reachable = Reachable;
     this.name = name;
     this.lamps = lamps;
 }
Exemple #4
0
 public HueGroup(HueHandler hh, String id, String OnLamp, String BrightnesLamp, String ColorLamp, String Sat, String x, String y, String CT, String alert, String effect, String ColorMode, String Reachable, String name, List <HueLamp> lamps)
 {
     this.hh = hh;
     this.id = id;
     try { this.OnLamp = Boolean.Parse(OnLamp); } catch { this.OnLamp = false; };
     this.BrightnesLamp = Int32.Parse(BrightnesLamp);
     this.ColorLamp     = Int32.Parse(ColorLamp);
     this.Sat           = Int32.Parse(Sat);
     this.x             = x;
     this.y             = y;
     this.CT            = CT;
     this.alert         = alert;
     this.effect        = effect;
     this.colormode     = ColorMode;
     this.reachable     = Reachable;
     this.name          = name;
     this.lamps         = lamps;
 }
Exemple #5
0
 public HueLamp(HueHandler hh, string id, string OnLamp, string BrightnesLamp, string ColorLamp, string Sat, string x, string y, string CT,
                string alert, string effect, string colormode, string reachable, string type, string name, string modelid, string swversion)
 {
     this.hh            = hh;
     this.id            = id;
     this.OnLamp        = Boolean.Parse(OnLamp);
     this.BrightnesLamp = Int32.Parse(BrightnesLamp);
     this.ColorLamp     = Int32.Parse(ColorLamp);
     this.Sat           = Int32.Parse(Sat);
     this.x             = x;
     this.y             = y;
     this.CT            = CT;
     this.alert         = alert;
     this.effect        = effect;
     this.colormode     = colormode;
     this.reachable     = reachable;
     this.type          = type;
     this.name          = name;
     this.modelid       = modelid;
     this.swversion     = swversion;
 }
Exemple #6
0
 protected override void OnNavigatedTo(NavigationEventArgs e)
 {
     hh = (HueHandler)e.Parameter;
 }
Exemple #7
0
 protected override void OnNavigatedTo(NavigationEventArgs e)
 {
     hh = (HueHandler)e.Parameter;
 }
 public MainViewModel(HueHandler h)
 {
     this.h = h;
 }
 public MainViewModel(HueHandler h)
 {
     this.h = h;
 }