/* Load the list of environments from Server */
 private void Load()
 {
     try
     {
         Mouse.OverrideCursor       = Cursors.Wait;
         cbEnvironments.ItemsSource = IndoorPositioningClient.GetEnvironments();
         cbBeacons.ItemsSource      = IndoorPositioningClient.GetBeacons();
         Mouse.OverrideCursor       = Cursors.Arrow;
     }
     catch (Exception ex)
     {
         Mouse.OverrideCursor = Cursors.Arrow;
         MessageBox.Show(ex.ToString());
     }
 }
Beispiel #2
0
 private void Load()
 {
     try
     {
         Mouse.OverrideCursor   = Cursors.Wait;
         lstBeacons.ItemsSource = IndoorPositioningClient.GetBeacons();
         if (lstBeacons.Items.Count > 0)
         {
             lstBeacons.SelectedIndex = selectedIndex;
         }
         Mouse.OverrideCursor = Cursors.Arrow;
     }
     catch (Exception ex)
     {
         Mouse.OverrideCursor = Cursors.Arrow;
         MessageBox.Show(ex.ToString());
     }
 }