Artemis.Modules.Games.EurotruckSimulator2.EurotruckSimulator2ViewModel.BrowseDirectory C# (CSharp) Method

BrowseDirectory() public method

public BrowseDirectory ( ) : void
return void
        public void BrowseDirectory()
        {
            var dialog = new FolderBrowserDialog
            {
                SelectedPath = ((EurotruckSimulator2Settings) GameSettings).GameDirectory
            };
            var result = dialog.ShowDialog();
            if (result != DialogResult.OK)
                return;

            ((EurotruckSimulator2Settings) GameSettings).GameDirectory = Path.GetDirectoryName(dialog.SelectedPath);
            NotifyOfPropertyChange(() => GameSettings);

            GameSettings.Save();
            PlacePlugin();
        }