Почему 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