Exemple #1
0
        private void btnSubmit_Click(object sender, RoutedEventArgs e)
        {
            guid = "";
            try
            {
                string[] tokenString = txtBattlelogURL.Text.Split('/');

                foreach (string token in tokenString)
                {
                    Guid guidNull;
                    if (Guid.TryParse(token, out guidNull))
                    {
                        guid = guidNull.ToString();
                        break;
                    }
                }
                XAML.Scoreboard scoreboard = new XAML.Scoreboard(guid);
                scoreboard.Show();
                Classes.Logger.addLog("btnSubmit_Click() - Opened scoreboard");
            }
            catch (Exception ex)
            {
                MessageBox.Show("please enter a valid battlelog url: " + ex.ToString());
            }
        }
Exemple #2
0
 private void ViewServers_Click(object sender, RoutedEventArgs e)
 {
     foreach (MyItemServers item in lbCurrentServers.SelectedItems)
     {
         XAML.Scoreboard scoreboard = new XAML.Scoreboard(item.svguid);
         scoreboard.Show();
     }
 }
Exemple #3
0
 private void btnLoadReport_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         XAML.Scoreboard scoreboard = new XAML.Scoreboard("", getSnapshot(reports[lbReports.SelectedIndex]));
         scoreboard.Show();
     }
     catch (Exception ex)
     {
         MessageBox.Show("You must first select a report: " + ex.ToString());
     }
 }