EWUScanner.ExclusionPaths.AddPath_Click C# (CSharp) Method

AddPath_Click() private method

private AddPath_Click ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void
        private void AddPath_Click(object sender, EventArgs e)
        {
            folderBrowserDialog1.ShowDialog(); //this dialog will allow the user to select a folder path
            //possibly get an array of file names?
            int index = dataGridView1.Rows.Add(); //index will store the index of the newly created row
            dataGridView1.Rows[index].Cells[0].Value = folderBrowserDialog1.SelectedPath; //Cells[0] is okay here, to hard-code, because only excluded paths should be displayed, only that column. Though this could be edited later on.

            //The .NET given folder browser is amazing. I tested it on network folder paths
            //and other variations that I could think of.
        }