OpenFileDialog が作業ディレクトリを変更するのはなぜですか? System.Windows.Forms の多くの関数が作業ディレクトリを変更すると仮定する必要がありますか?
OpenFileDialog open = new OpenFileDialog();
open.Filter = filter;
a = Directory.GetCurrentDirectory(); //<-- correct
if (open.ShowDialog() == DialogResult.OK) //-- select a file on my desktop
{
a = Directory.GetCurrentDirectory(); //<-- incorrect, is set to my desktop