Exemplo n.º 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;
 }
Exemplo n.º 2
0
 private void BtnNMEA_Checked(object sender, RoutedEventArgs e)
 {
     if (HubGPSConfig.GetFirstDescendantOfType <ComboBox>().SelectedItem != null)
     {
         BoxDevices_SelectionChanged(HubGPSConfig.GetFirstDescendantOfType <ComboBox>(), null);
     }
 }