private bool moreClassesPages()
        {
            if (uclass != Structs.ShootersClass.Okänd)
            {
                return(false);
            }

            bool nextClass = false;

            // We're talking multiple classes here...
            for (int i = 0; i <= Structs.ShootersClassMax; i++)
            {
                Structs.ShootersClass thisuclass =
                    (Structs.ShootersClass)i;
                try
                {
                    int.Parse(thisuclass.ToString());
                }
                catch (Exception)
                {
                    // A class, since we couldn't parse int
                    if (nextClass)
                    {
                        if (CommonCode.GetCompetitorResultsCount(
                                wclass, thisuclass) > 0)
                        {
                            competitorsDone    = -1;
                            this.currentUClass = (int)thisuclass;
                            getCurrentResults();
                            return(true);
                        }
                    }

                    // Check if next class should be checked
                    if ((int)thisuclass == this.currentUClass)
                    {
                        nextClass = true;
                    }
                }
            }
            return(false);
        }
        private void btnPrint_Click(object sender, System.EventArgs e)
        {
#if VisualStudio
            // Check if there is any results to print
            if (CommonCode.GetCompetitorResultsCount() == 0)
            {
                MessageBox.Show(
                    "Det finns inte några resultat att skriva ut",
                    "WinShooter",
                    MessageBoxButtons.OK,
                    MessageBoxIcon.Warning);
                return;
            }
            try
            {
                CPrintResultlist pd = new CPrintResultlist(ref CommonCode,
                                                           getCurrentWeaponClass(),
                                                           getCurrentShootersClass(),
                                                           true,
                                                           null);

                PrintDialog dlg = new PrintDialog();
                dlg.Document = pd;
                dlg.Document.DefaultPageSettings.Landscape = false;
                DialogResult result = dlg.ShowDialog();

                if (result == DialogResult.OK)
                {
                    pd.Print();
                }
            }
            catch (Exception exc)
            {
                MessageBox.Show("Fel uppstod vid utskrift:\n" + exc.ToString());
            }
#else
            MessageBox.Show("Printing is not supported in Mono");
#endif
        }