예제 #1
0
        private void BackgroundWorkerResult_DoWork(object sender, DoWorkEventArgs e)
        {
            string resultFilePath = (string)e.Argument;

            FileReader.LoadResults(resultFilePath);
            FileReader.fileLoadMode = FileLoadMode.ResultFile;
            // Create the AA Mass dictionary
            IonCalculation.MakeAaMassDictionary();
        }
예제 #2
0
        /// <summary>
        /// Background worker - MGX File loader
        /// </summary>
        private void BackgroundWorkerMGX_DoWork(object sender, DoWorkEventArgs e)
        {
            // Get the files from the input and parse it to a string
            object        o      = e.Argument;
            List <string> inputs = o as List <string>;

            // Convert MGX to MGF
            FileReader.MakeMGFs(inputs);
            // Create the AA Mass dictionary
            IonCalculation.MakeAaMassDictionary();
            FileReader.fileLoadMode = FileLoadMode.XTandemRun;
        }