MissionPlanner.temp.but_GDAL_Click C# (CSharp) Method

but_GDAL_Click() private method

private but_GDAL_Click ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void
        private void but_GDAL_Click(object sender, EventArgs e)
        {
            FolderBrowserDialog fbd = new FolderBrowserDialog();

            if (fbd.ShowDialog() == DialogResult.OK)
            {
                if (Directory.Exists(fbd.SelectedPath))
                {
                    GDAL.GDAL.OnProgress += GDAL_OnProgress;
                    GDAL.GDAL.ScanDirectory(fbd.SelectedPath);
                    DTED.OnProgress += GDAL_OnProgress;
                    DTED.AddCustomDirectory(fbd.SelectedPath);

                    Loading.Close();
                }
            }
        }