示例#1
0
        /// <summary>
        /// File browser for selecting the Mascot INP file
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void buttonInpFile_Click(object sender, EventArgs e)
        {
            string mascotParametersFile;

            string mascotTodayFolder = MascotManager.SetTodayMascotDataFolder();

            mascotParametersFile = SelectFile(mascotTodayFolder, "Mascot Search (.inp)|*.inp");

            if (mascotParametersFile.Length == 0)
            {
                return;
            }

            FileInfo info = new FileInfo(mascotParametersFile);

            if (info.Length < Properties.Settings.Default.searchParametersFileSizeInBytesMax)
            {
                this.textBoxSearchParameters.Text = mascotParametersFile;
                ActivateSubmit(textBoxBigMgf.Text, textBoxSearchParameters.Text);
            }
            else
            {
                MessageBox.Show(@Properties.Settings.Default.searchPamameterFileInfo, "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning);
            }
        }
示例#2
0
        /// <summary>
        /// Submit a  Mascot Search to Mascot Server knowing the MGF and INP files
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void buttonSubmit_Click(object sender, EventArgs e)
        {
            this.buttonSubmit.Enabled = false;

            string refactoredMgfFile = MascotManager.RefactorMgf(this.textBoxBigMgf.Text, this.textBoxSearchParameters.Text);

            MascotManager.ResubmitToMascot(refactoredMgfFile);

            this.buttonSubmit.Enabled = true;
        }