Exemplo n.º 1
0
        private void BrowseForSchema_Click(object sender, System.Windows.RoutedEventArgs e)
        {
            var fm = new FileFilterManager();

            fm.AddGuiSchemaFilter();

            var ofd = ControlFactory.CreateOpenFileDialog("Select a schema file.", fm.ToString());

            if (ofd.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                this.NewSchemaPath.Text = ofd.FileName;
                SchemaPath = ofd.FileName;
            }

            this.NewSchemaOption.IsChecked = true;
        }