private void LoadProject()
        {
            try
            {
                DialogResult dlg = dlgOpenProject.ShowDialog();
                if (dlg != DialogResult.OK)
                {
                    return;
                }
                SetText(dlgOpenProject);
                string filename = dlgOpenProject.FileName;
                PA = PermutationArray.ReadFromFile(filename);

                thresholdEntry.SetInitialValues(PA.GetPositiveThreshold(), PA.GetNegativeThreshold());

                cbWildTypeXAxis.Checked    = !PA.PermutationXAxis;
                cbYAxisTopToBottom.Checked = PA.WildTypeYAxisTopToBottom;
                colCount = PA.ColCount;
                rowCount = PA.RowCount;

                SetRowColumnCount();
                rbMeanValue.Checked    = PA.NormMode == NormalizationMode.Mean;
                rbPerRowColumn.Checked = PA.NormMode != NormalizationMode.Mean;
                if (PA.PeptideMatrix != null)
                {
                    LoadPeptidesFromPermutationArrayToGrid();
                }
                if (PA.QuantificationMatrix != null)
                {
                    LoadQuantificationFromPermutationArrayToGrid();
                }
                if (PA.NormalizedMatrix != null)
                {
                    LoadNormalizedMatrixFromPeptideArrayToGrid();
                }
                bool gridsOK = ColorGrids();
                eNotes.Text          = PA.Notes;
                imageReference.Image = null;
                try
                {
                    Image img = FileUtil.Base64ToImage(PA.ImageStr);
                    imageReference.Image = img;
                }
                catch { }
                DrawColorMatrix();
                if (!gridsOK)
                {
                    MessageBox.Show("There is a problem in loading the file. It is highly recommended to re-run the analysis.", Analyzer.ProgramName);
                }
            }
            catch
            {
                MessageBox.Show("There is a problem in loading the file. It is highly recommended to re-run the analysis.", Analyzer.ProgramName);
            }
            linkRun.Visible = true;
        }