public void Configure(ILogLineColumnizerCallback callback, string configDir) { string configPath = configDir + "\\csvcolumnizer.dat"; CsvColumnizerConfigDlg dlg = new CsvColumnizerConfigDlg(this.config); if (dlg.ShowDialog() == DialogResult.OK) { BinaryFormatter formatter = new BinaryFormatter(); Stream fs = new FileStream(configPath, FileMode.Create, FileAccess.Write); formatter.Serialize(fs, this.config); fs.Close(); Selected(callback); } }