private void ChangeFolderButton_OnClick(object sender, EventArgs e)
        {
            int[] sel = tableView1.GetSelectedRows();
            if (sel.Length == 0)
            {
                MessageBox.Show(Loc.PleaseSelectSomeRows);
                return;
            }
            FolderQueryForm fqw = new FolderQueryForm(Path.GetDirectoryName((string)table.GetRow(sel[0])["Fasta file path"]));

            if (!Directory.Exists(fqw.Value))
            {
                return;
            }
            if (fqw.ShowDialog() == DialogResult.OK)
            {
                foreach (int i in sel)
                {
                    DataRow2 row     = table.GetRow(i);
                    string   name    = (string)row["Fasta file path"];
                    string   newFile = Path.Combine(Path.GetFullPath(fqw.Value), Path.GetFileName(name));
                    row["Fasta file path"] = newFile;
                    row["Exists"]          = File.Exists(newFile).ToString();
                }
            }
            tableView1.Invalidate(true);
        }
        private void EditButtonOnClick(object sender, EventArgs eventArgs)
        {
            int[] sel = tableView1.GetSelectedRows();
            if (sel.Length != 1)
            {
                MessageBox.Show("Please select exactly one row.");
                return;
            }
            DataRow2 row             = table.GetRow(sel[0]);
            IsobaricLabelsEditForm f = new IsobaricLabelsEditForm(new IsobaricLabelInfo((string)row[0], (string)row[1], (double)row[2],
                                                                                        (double)row[3], (double)row[4], (double)row[5], (bool)row[6]));

            f.ShowDialog();
            if (f.DialogResult != DialogResult.OK)
            {
                return;
            }
            IsobaricLabelInfo info = f.Info;

            row[0] = info.internalLabel;
            row[1] = info.terminalLabel;
            row[2] = info.correctionFactorM2;
            row[3] = info.correctionFactorM1;
            row[4] = info.correctionFactorP1;
            row[5] = info.correctionFactorP2;
            row[6] = info.tmtLike;
            tableView1.Invalidate(true);
        }