/// <summary>
        /// Called when load file two dialog is file ok
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void file2Dialog_FileOk(object sender, CancelEventArgs e)
        {
            if (file2Dialog.FileName != null && !file2Dialog.FileName.Equals(""))
            {
                polar2 = new Polar();
                polar2.LoadData(file2Dialog.FileName);

                dw2 = new DataViewImproved(polar2.GetUnit(), polar2.GetHrData(), polar2.GetSMODE(), this.polar2, this, polar2.GetRideInfo());
                //dw1.AddRideInfo(polar.GetRideInfo());
                dw2.AddFullData();
                dw2.SetFTP(ftp);
                dw2.Dock = DockStyle.Fill;

                if (dw2.GetInterval() != dw1.GetInterval())
                {
                    MessageBox.Show("Error: Please load a file with the same recording interval", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
                    dw2 = null;
                    return;
                }
                //singleView.Controls.Clear();
                //singleView.Controls.Add(dw2);
                //enterMaximumHeartRateToolStripMenuItem.ShowDropDown();
                // ftpMenu.ShowDropDown();

                //menuStrip3.Hide();
                file2 = new ComparrisonControl(dw2, this, "file2");
                AddComparison();
            }
        }
        /// <summary>
        /// Event called when ok is pressed on the fileopendialog
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void FileOk(object sender, CancelEventArgs e)
        {
            if (fileDialog.FileName != null || !fileDialog.FileName.Equals(""))
            {
                polar = new Polar();
                polar.LoadData(fileDialog.FileName);

                dw1 = new DataViewImproved(polar.GetUnit(), polar.GetHrData(), polar.GetSMODE(), this.polar, this, polar.GetRideInfo());
                //dw1.AddRideInfo(polar.GetRideInfo());
                dw1.AddFullData();
                dw1.SetFTP(ftp);
                dw1.Dock = DockStyle.Fill;
                singleView.Controls.Clear();
                singleView.Controls.Add(dw1);
                enterMaximumHeartRateToolStripMenuItem.ShowDropDown();
                ftpMenu.ShowDropDown();

                //menuStrip3.Hide();
                file1 = new ComparrisonControl(dw1, this, "file1");
                AddComparison();
            }
        }