protected void Import() { using (OpenFileDialog openFileDialog = new OpenFileDialog()) { openFileDialog.CheckFileExists = true; openFileDialog.CheckPathExists = true; openFileDialog.Filter = "SSO Application Config files (*.xml)|*.xml|All files (*.*)|*.*"; openFileDialog.DefaultExt = "*.xml"; openFileDialog.Title = "Import SSO Application Configuration"; if (this.SnapIn.Console.ShowDialog(openFileDialog) == DialogResult.OK) { // import the app configuration from the file SSOManager.ImportApplication(openFileDialog.FileName, true); } } }