コード例 #1
0
 private void BtnGPSConfig_Click(object sender, RoutedEventArgs e)
 {
     ((OfflineMapsViewModel)this.DataContext).GetSerialDevices();
     HubGPSConfig.GetFirstDescendantOfType <ComboBox>().SelectedItem = ((OfflineMapsViewModel)this.DataContext).SelectedDevice;
     ScrollToSectionAnimated(Hub, HubGPSConfig);
     BtnMainMenu.Visibility = Visibility.Visible;
 }
コード例 #2
0
 private void BtnNMEA_Checked(object sender, RoutedEventArgs e)
 {
     if (HubGPSConfig.GetFirstDescendantOfType <ComboBox>().SelectedItem != null)
     {
         BoxDevices_SelectionChanged(HubGPSConfig.GetFirstDescendantOfType <ComboBox>(), null);
     }
 }