public override IEnumerable <string> Process()
        {
            var runOptions = new MultipleRaw2MgfOptions();

            if (options.Create)
            {
                runOptions.RawFiles = new[] { "sample1.raw", "sample2.raw" };
                runOptions.SaveToFile(options.InputFile);
                return(new[] { options.InputFile });
            }

            runOptions.LoadFromFile(options.InputFile);
            return(new MultipleRaw2MgfProcessor(runOptions).Process(runOptions.TargetDirectory));
        }
        private void btnLoad_Click(object sender, EventArgs e)
        {
            var dlg = this.openParamFile.GetFileDialog();

            if (dlg.ShowDialog() == DialogResult.OK)
            {
                var options = new MultipleRaw2MgfOptions();
                try
                {
                    options.LoadFromFile(dlg.FileName);
                    OptionsToForm(options);
                }
                catch (Exception ex)
                {
                    MessageBox.Show(this, "Failed to load parameters from " + dlg.FileName + "\nError:" + ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
                }
            }
        }