Esempio n. 1
0
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            var  spsd = new StartupPathSelectionDialog();
            bool?res  = spsd.ShowDialog();

            if (res != true)
            {
                Application.Current.Shutdown();
                return;
            }

            Event     = ScoutingJson.ParseFrcEvent(spsd.EventPath);
            Teams     = ScoutingJson.ParseTeamsList(spsd.TeamsPath);
            EventPath = Util.GetFolderPath(spsd.EventPath);

            if (Event != null && Teams != null)
            {
                Event.PostJsonLoading(Teams);
            }
            hasLoaded = true;

            LoadCreateAnalysis();
            MatchSelectionList.ItemsSource = Event.Matches;
        }
		private void Window_Loaded(object sender, RoutedEventArgs e)
		{
			var spsd = new StartupPathSelectionDialog();
			bool? res = spsd.ShowDialog();

			if (res != true)
			{
				Application.Current.Shutdown();
				return;
			}

			Event = ScoutingJson.ParseFrcEvent(spsd.EventPath);
			Teams = ScoutingJson.ParseTeamsList(spsd.TeamsPath);
			EventPath = Util.GetFolderPath(spsd.EventPath);

			if (Event != null && Teams != null)
			{
				Event.PostJsonLoading(Teams);
			}
			hasLoaded = true;

			LoadCreateAnalysis();
			MatchSelectionList.ItemsSource = Event.Matches;
		}