protected void LoadProfiles()
{
// Clear out old junk
ProfileSelector.Items.Clear();
Profiles = new List<string>();
// Load all profiles
string[] medalList = Directory.GetFiles(PythonPath, "medal_data_*.py");
foreach (string file in medalList)
{
// Remove the path to the file
string fileF = file.Remove(0, PythonPath.Length + 1);
// Remove .py extension, and add it to the list of files
fileF = fileF.Remove(fileF.Length - 3, 3).Replace("medal_data_", "");
ProfileSelector.Items.Add(fileF);
Profiles.Add(fileF.ToLower());
}
}