private void browseTypeShedPathButton_Click(object sender, EventArgs e)
        {
            var newPath = _serviceProvider.BrowseForDirectory(Handle, _options.TypeShedPath);

            if (!string.IsNullOrEmpty(newPath))
            {
                typeShedPathTextBox.Text = newPath;
            }
        }
Example #2
0
        private void FindWorkingDirectoryClick(object sender, RoutedEventArgs e)
        {
            var standalone = _viewModel.Standalone;

            if (standalone != null)
            {
                var path = _serviceProvider.BrowseForDirectory(
                    new System.Windows.Interop.WindowInteropHelper(this).Handle,
                    standalone.WorkingDirectory
                    );
                if (!string.IsNullOrEmpty(path))
                {
                    standalone.WorkingDirectory = path;
                }
            }
        }
Example #3
0
        private void BrowseLibraryPathClick(object sender, EventArgs e)
        {
            string dir = _libraryPath.Text;

            if (string.IsNullOrEmpty(dir))
            {
                if (File.Exists(_path.Text))
                {
                    dir = Path.GetDirectoryName(_path.Text);
                }
            }

            var libPath = _serviceProvider.BrowseForDirectory(Handle, dir);

            if (!string.IsNullOrEmpty(libPath))
            {
                _libraryPath.Text = libPath;
            }
        }