private void menuItemSetMinLapTime_Click(object sender, EventArgs e)
        {
            //show a dialog with a simple spinner to set minimum lap time
            Form setMinTimeDialog = new Form();
            setMinTimeDialog.Text = "Set Minimum Lap Time";
            setMinTimeDialog.Width = 220;
            setMinTimeDialog.Height = 160;

            NumericUpDown upDown = new NumericUpDown();
            upDown.Minimum = 10;
            upDown.Maximum = 999;
            upDown.Value = DataManager.Instance.MinimumLapTime;
            upDown.SetBounds(55, 50, 105, 30);
            setMinTimeDialog.Controls.Add(upDown);

            Label label = new Label();
            label.Text = "Seconds: ";
            label.SetBounds(2, 52, 53, 30);
            setMinTimeDialog.Controls.Add(label);

            Button okButton = new Button();
            okButton.Text = "OK";
            okButton.DialogResult = System.Windows.Forms.DialogResult.OK;
            okButton.SetBounds(55, 100, 50, 22);
            Button cancelButton = new Button();
            cancelButton.Text = "Cancel";
            cancelButton.SetBounds(110, 100, 50, 22);
            setMinTimeDialog.CancelButton = cancelButton;

            setMinTimeDialog.Controls.Add(okButton);
            setMinTimeDialog.Controls.Add(cancelButton);

            setMinTimeDialog.ShowDialog();
            if (setMinTimeDialog.DialogResult == System.Windows.Forms.DialogResult.OK)
            {
                DataManager.Instance.MinimumLapTime = (int)upDown.Value;
            }
            setMinTimeDialog.Dispose();
        }