Beispiel #1
0
        /// <summary>
        /// The extract click event.
        /// </summary>
        /// <param name="sender">
        /// The sender.
        /// </param>
        /// <param name="e">
        /// The e.
        /// </param>
        private async void ExtractClick(object sender, EventArgs e)
        {
            // this.Enabled = false;
            var targets = new List <XicTarget>();

            foreach (var item in this.xicTargetBindingSource.List)
            {
                targets.Add(item as XicTarget);
            }
            UimfProcessor.Options = new CommandLineOptions
            {
                InputPath          = this.inputDirectory,
                OutputPath         = this.outputDirectory,
                AllFrames          = this.AllFrames.Checked,
                BulkPeakComparison = this.BulkPeakComparison.Checked,
                Frame           = (int)this.FrameNumber.Value,
                Getmsms         = this.Getmsms.Checked,
                PeakFind        = this.PeakFind.Checked,
                Recursive       = this.Recursive.Checked,
                Verbose         = true,
                ExtractionTypes = this.extractionProcedures.ToArray()
            };

            UimfProcessor.Options.XicTargetList.AddRange(targets);


            await UimfProcessor.ExtractData();

            //   this.Enabled = true;
        }
Beispiel #2
0
        public static void Main(string[] args)
        {
            if (args.Length < 1)
            {
                Console.WriteLine("Starting windows application");
                var gui = new UimfDataExtractorGui();
                gui.ShowDialog();
            }
            else
            {
                UimfProcessor.Options = new CommandLineOptions();

                var result = CommandLine.Parser.Default.ParseArguments <CommandLineOptions>(args);
                if (result.Tag == ParserResultType.NotParsed)
                {
                    return;
                }

                // Domain logic here
                UimfProcessor.ExtractData();
            }

            Console.WriteLine("Exiting");
        }