コード例 #1
0
ファイル: Groups.xaml.cs プロジェクト: jancoow/HueMalekJanco
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            Button   myButton = (Button)sender;
            HueGroup hl       = myButton.DataContext as HueGroup;

            this.Frame.Navigate(typeof(SettingsGroup), hl);
        }
コード例 #2
0
 protected override void OnNavigatedTo(NavigationEventArgs e)
 {
     huegroup = (HueGroup)e.Parameter;
     NameLight.Text = huegroup.name;
     int r, g, b;
     huegroup.getRGBValue(out r, out g, out b);
     Red.Value = r;
     Green.Value = g;
     Blue.Value = b;
     SetOn.IsOn = huegroup.OnLamp;
     SolidColorBrush color = new SolidColorBrush(huegroup.getColor());
     ColorChanger.Fill = color;
 }
コード例 #3
0
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            huegroup       = (HueGroup)e.Parameter;
            NameLight.Text = huegroup.name;
            int r, g, b;

            huegroup.getRGBValue(out r, out g, out b);
            Red.Value   = r;
            Green.Value = g;
            Blue.Value  = b;
            SetOn.IsOn  = huegroup.OnLamp;
            SolidColorBrush color = new SolidColorBrush(huegroup.getColor());

            ColorChanger.Fill = color;
        }