Ejemplo n.º 1
0
        private void getWeaponUsePercentagesButton_Click(object sender, EventArgs e)
        {
            String       vanityUrl     = usernameBox.Text;
            String       userSteamID64 = getSteamID64(vanityUrl);
            Stats        stats         = getStats(userSteamID64);
            GraphingForm graph         = new GraphingForm(stats, 0);

            graph.Show();
        }
Ejemplo n.º 2
0
        private void getStatsButton_Click(object sender, EventArgs e) //triggers the stat search
        {
            String       vanityUrl     = usernameBox.Text;
            String       userSteamID64 = getSteamID64(vanityUrl);
            Stats        stats         = getStats(userSteamID64);
            GraphingForm graph         = new GraphingForm(stats);

            graph.Show();
        }
Ejemplo n.º 3
0
        private void getComparedStatsButton_Click(object sender, EventArgs e)
        {
            String vanityUrl     = usernameBox.Text;
            String userSteamID64 = getSteamID64(vanityUrl);
            Stats  stats1        = getStats(userSteamID64);

            stats1.playerName = vanityUrl;
            String secondUsername      = Microsoft.VisualBasic.Interaction.InputBox("Please enter a second Steam Username to compare.", "Enter Comparison Username");
            String secondUserSteamID64 = getSteamID64(secondUsername);
            Stats  stats2 = getStats(secondUserSteamID64);

            stats2.playerName = secondUsername;
            GraphingForm graph = new GraphingForm(stats1, stats2);

            graph.Show();
        }