示例#1
0
        public void BrowseForFileName()
        {
            openFileDialog.Filter = "XML Document (*.xml)|*.xml|All Files (*.*)|*.*";
            var result = openFileDialog.ShowDialog();

            if (result == DialogResult.OK)
            {
                view.SetFileName(openFileDialog.FileName);
            }
        }