Example #1
0
        //Display GPS position
        private void ShowGPSLocations_Click(object sender, RoutedEventArgs e)
        {
            if (subWindow == null)
            {
                if (Team.getTeamList().Any() && GPSLocation.getDictionary().Any())
                {
                    subWindow = new GPSAssignment(this);
                    subWindow.Show();
                }
                else
                {
                    if (!Team.getTeamList().Any())
                    {
                        MessageBox.Show(Properties.Resources.MessageBox_GPS_NoTeams);
                    }

                    else if (!GPSLocation.getDictionary().Any())
                    {
                        MessageBox.Show(Properties.Resources.MessageBox_GPS_NoPositions);
                    }
                }
            }
        }
Example #2
0
 //close GPS window
 public void CloseGPSWindow()
 {
     subWindow = null;
 }