private void BrowseButton_Click(object sender, EventArgs e) { var folderBrowseDialog = new FolderBrowserDialog(); folderBrowseDialog.ShowNewFolderButton = false; folderBrowseDialog.Description = "Select the root Osu! folder"; if(folderBrowseDialog.ShowDialog() == DialogResult.OK) { loader = new RankLoader(folderBrowseDialog.SelectedPath); DirectoryText.Text = folderBrowseDialog.SelectedPath; LoadBTN.Enabled = true; SaveBTN.Enabled = true; } }
public static void LoadOnlineData(ref RankLoader.ExtendedScoreType data) { var webClient = new WebClient(); var response = webClient.DownloadString(string.Format(OnlineURI, data.MapHash, PlayerUsername, PlayerHash)); var onlineData = OnlineData.ParseData(response); data.Online = onlineData; }
private RankLoader.DisplayExtendedScoreType[] ToDisplay(RankLoader.ExtendedScoreType[] scores) { var output = new RankLoader.DisplayExtendedScoreType[scores.Length]; for(var i = 0; i < scores.Length; i++) output[i] = RankLoader.ParseDisplay(scores[i]); return output; }