AerialForWindows.SettingsViewModel.OnBrowseCachePathCommand C# (CSharp) Method

OnBrowseCachePathCommand() private method

private OnBrowseCachePathCommand ( ) : void
return void
        private void OnBrowseCachePathCommand()
        {
            using (var dlg = new FolderBrowserDialog()) {
                dlg.RootFolder = Environment.SpecialFolder.MyComputer;
                dlg.ShowNewFolderButton = true;
                dlg.SelectedPath = CachePath;

                if (dlg.ShowDialog() == DialogResult.OK) {
                    CachePath = dlg.SelectedPath;
                }
            }
        }