private void outputToolStripMenuItem_Click(object sender, EventArgs e) { FolderBrowserDialog fd = new FolderBrowserDialog(); if (fd.ShowDialog(this) == DialogResult.OK) { OutputUtils ou = new OutputUtils(); ou.Output(fd.SelectedPath); } }