private void navPrintFormButton_Click(object sender, EventArgs e) {
            Boolean curHeadToHead = false;
            Int16 curRound = Convert.ToInt16( roundActiveSelect.RoundValue );
            String curTourPlcmtOrg = "group", curCommandType = "";
            int curCount = 0;
            foreach (DataGridViewRow curRow in EventRegDataGridView.Rows) {
                if (( (String)curRow.Cells["EventGroup"].Value ).Equals( "HH1" )) {
                    curCount++;
                    curHeadToHead = true;
                }
            }
            if (curCount > 0) {
                curCommandType = "H2H";
                if (curCount > 2) {
                    curTourPlcmtOrg = "div";
                }
            }

            if (myEvent.Equals( "Slalom" )) {
                PrintDialog curPrintDialog = new PrintDialog();
                PrintOfficialFormDialog curDialog = new PrintOfficialFormDialog();
                if (curDialog.ShowDialog() == DialogResult.OK) {
                    String curPrintReport = curDialog.ReportName;
                    if (curPrintReport.Equals( "SlalomBoatJudgeForm" )) {
                        PrintSlalomBoatJudgeForms curPrintForm = new PrintSlalomBoatJudgeForms();
                        curPrintForm.PrintLandscape = true;
                        if (curHeadToHead) {
                            curPrintForm.ReportHeader = "Head to Head Round " + roundActiveSelect.RoundValue;
                            curPrintForm.TourRules = "htoh-" + curTourPlcmtOrg;
                        } else {
                            curPrintForm.ReportHeader = "Round " + roundActiveSelect.RoundValue;
                            curPrintForm.TourRules = myTourRules;
                        }
                        curPrintForm.DivInfoDataTable = getEventDivMaxMinSpeed();
                        curPrintForm.TourName = (String)myTourRow["Name"];
                        curPrintForm.ShowDataTable = getEventRoundSkierOrder( curRound, curTourPlcmtOrg, curCommandType );
                        curPrintForm.Print();
                    } else if (curPrintReport.Equals( "SlalomRecapForm" )) {
                        PrintSlalomRecapForm curPrintForm = new PrintSlalomRecapForm();
                        curPrintForm.PrintLandscape = true;
                        if (curHeadToHead) {
                            curPrintForm.ReportHeader = "Head to Head Round " + roundActiveSelect.RoundValue;
                            curPrintForm.TourRules = "htoh";
                        } else {
                            curPrintForm.ReportHeader = "Round " + roundActiveSelect.RoundValue;
                            curPrintForm.TourRules = myTourRules;
                        }
                        curPrintForm.DivInfoDataTable = getEventDivMaxMinSpeed();
                        curPrintForm.TourName = (String)myTourRow["Name"];
                        curPrintForm.ShowDataTable = getEventRoundSkierOrder( curRound, curTourPlcmtOrg, curCommandType );
                        curPrintForm.Print();
                    }
                }
            } else if (myEvent.Equals( "Jump" )) {
                PrintJumpRecapJudgeForm curPrintForm = new PrintJumpRecapJudgeForm();
                curPrintForm.PrintLandscape = true;
                if (curHeadToHead) {
                    curPrintForm.ReportHeader = "Head to Head Round " + roundActiveSelect.RoundValue;
                    curPrintForm.TourRules = "htoh";
                } else {
                    curPrintForm.ReportHeader = "Round " + roundActiveSelect.RoundValue;
                    curPrintForm.TourRules = myTourRules;
                }
                curPrintForm.DivInfoDataTable = getJumpDivMaxSpeedRamp();
                curPrintForm.TourName = (String)myTourRow["Name"];
                curPrintForm.ShowDataTable = getEventRoundSkierOrder( curRound, curTourPlcmtOrg, curCommandType );
                curPrintForm.Print();
            } else if (myEvent.Equals( "Trick" )) {
                PrintTrickJudgeForm curPrintForm = new PrintTrickJudgeForm();
                curPrintForm.PrintLandscape = true;
                if (curHeadToHead) {
                    curPrintForm.ReportHeader = "Head to Head Round " + roundActiveSelect.RoundValue;
                    curPrintForm.TourRules = "htoh";
                } else {
                    curPrintForm.ReportHeader = "Round " + roundActiveSelect.RoundValue;
                    curPrintForm.TourRules = myTourRules;
                }
                curPrintForm.DivInfoDataTable = getEventDivMaxMinSpeed();
                curPrintForm.TourName = (String)myTourRow["Name"];
                curPrintForm.TourRounds = Convert.ToInt32( myTourRow["TrickRounds"] );
                curPrintForm.ShowDataTable = getEventRoundSkierOrder( curRound, curTourPlcmtOrg, curCommandType );
                curPrintForm.Print();
            }
        }
        private void navPrintFormButton_Click(object sender, EventArgs e)
        {
            if (slalomButton.Checked) {
                PrintDialog curPrintDialog = new PrintDialog();
                PrintOfficialFormDialog curDialog = new PrintOfficialFormDialog();
                if (curDialog.ShowDialog() == DialogResult.OK) {
                    String curPrintReport = curDialog.ReportName;
                    if (curPrintReport.Equals( "SlalomBoatJudgeForm" )) {
                        PrintSlalomBoatJudgeForms curPrintForm = new PrintSlalomBoatJudgeForms();
                        curPrintForm.PrintLandscape = true;
                        curPrintForm.ReportHeader = printHeaderNote.Text;
                        curPrintForm.DivInfoDataTable = getSlalomDivMaxMinSpeed();
                        curPrintForm.TourRules = myTourRules;
                        curPrintForm.TourName = (String)myTourRow["Name"];

                        myEventRegDataTable.DefaultView.Sort = mySortCmd;
                        myEventRegDataTable.DefaultView.RowFilter = myFilterCmd;
                        curPrintForm.ShowDataTable = myEventRegDataTable.DefaultView.ToTable();

                        curPrintForm.Print();
                    } else if (curPrintReport.Equals( "SlalomRecapForm" )) {
                        PrintSlalomRecapForm curPrintForm = new PrintSlalomRecapForm();
                        curPrintForm.PrintLandscape = true;
                        curPrintForm.ReportHeader = printHeaderNote.Text;
                        curPrintForm.DivInfoDataTable = getSlalomDivMaxMinSpeed();
                        curPrintForm.TourRules = myTourRules;
                        curPrintForm.TourName = (String)myTourRow["Name"];

                        myEventRegDataTable.DefaultView.Sort = mySortCmd;
                        myEventRegDataTable.DefaultView.RowFilter = myFilterCmd;
                        curPrintForm.ShowDataTable = myEventRegDataTable.DefaultView.ToTable();

                        curPrintForm.Print();
                    }
                }
            } else if (jumpButton.Checked) {
                PrintJumpRecapJudgeForm curPrintForm = new PrintJumpRecapJudgeForm();
                curPrintForm.PrintLandscape = true;
                curPrintForm.ReportHeader = printHeaderNote.Text;
                curPrintForm.DivInfoDataTable = getJumpDivMaxSpeedRamp();
                curPrintForm.TourRules = myTourRules;
                curPrintForm.TourName = (String)myTourRow["Name"];

                myEventRegDataTable.DefaultView.Sort = mySortCmd;
                myEventRegDataTable.DefaultView.RowFilter = myFilterCmd;
                curPrintForm.ShowDataTable = myEventRegDataTable.DefaultView.ToTable();

                curPrintForm.Print();
            } else if (trickButton.Checked) {
                PrintTrickJudgeForm curPrintForm = new PrintTrickJudgeForm();
                curPrintForm.PrintLandscape = true;
                curPrintForm.ReportHeader = printHeaderNote.Text;
                curPrintForm.DivInfoDataTable = getTrickDivList();
                curPrintForm.TourName = (String)myTourRow["Name"];
                curPrintForm.TourRules = myTourRules;
                curPrintForm.TourRounds = Convert.ToInt32( myTourRow["TrickRounds"] );
                curPrintForm.NumJudges = 3;
                String dialogMsg = "Do you want to include a trick timing form?";
                DialogResult msgResp =
                    MessageBox.Show(dialogMsg, "Change Warning",
                        MessageBoxButtons.YesNoCancel,
                        MessageBoxIcon.Warning,
                        MessageBoxDefaultButton.Button1);
                if ( msgResp == DialogResult.Yes ) {
                    curPrintForm.NumJudges = 4;
                }

                myEventRegDataTable.DefaultView.Sort = mySortCmd;
                myEventRegDataTable.DefaultView.RowFilter = myFilterCmd;
                curPrintForm.ShowDataTable = myEventRegDataTable.DefaultView.ToTable();

                curPrintForm.Print();
            }
        }