Ejemplo n.º 1
0
        private void BrowseLocation_Click(object sender, RoutedEventArgs e)
        {
            var fm = new FileFilterManager();

            fm.Add("*.dll;*.exe", "Assembly files (*.dll, *.exe)");
            fm.AddAllFilesFilter();

            var ofd = ControlFactory.CreateOpenFileDialog("Browse to the tool executable file.",
                                                          fm.ToString());

            if (ofd.ShowDialog(new Win32Window(App.Current.MainWindow)) == System.Windows.Forms.DialogResult.OK)
            {
                this.ToolLocation.Text = ofd.FileName;
            }
        }