CamTimer.MainForm.destinationFolderBrowse_Click C# (CSharp) Method

destinationFolderBrowse_Click() private method

private destinationFolderBrowse_Click ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void
        private void destinationFolderBrowse_Click(object sender, EventArgs e)
        {
            if (Directory.Exists(confFolder.Text)) {
                confFolderDialog.SelectedPath = confFolder.Text;
            } else {
                confFolderDialog.SelectedPath = string.Empty;
            }
            if (confFolderDialog.ShowDialog(this) == DialogResult.OK) {
                confFolder.Text = confFolderDialog.SelectedPath;
                if (confFolder.Text.Length > 0) {
                    confFolder.Select(confFolder.Text.Length, 0);
                }
            }
        }