public WaitDialog(string format, string caption) { try { _theDialog = new VSWaitDialog(format, caption); } catch (FileNotFoundException) { _theDialog = null; } }