Exemplo n.º 1
0
        private void OnSelectDocDefinitionFilePathnameRequested(object sender, EventArgs e)
        {
            var pathnameSelector = new FileOpenDialog();

            pathnameSelector.Title = "Specify the pathname of the file containing the document-definition.";
            //  pathnameSelector.InitialDirectory = _viewModel.DocDefinitionFilePathname;
            if (StringLib.HasNothing(_viewModel.DocDefinitionFilePathname))
            {
                // pathnameSelector.SelectedFilename = "CodeMetricsComparisonReport.txt";
            }
            var r = pathnameSelector.ShowDialog();

            if (r == DisplayUxResult.Ok)
            {
                _viewModel.DocDefinitionFilePathname = pathnameSelector.SelectedFilename;
            }
        }