private void btnAddFolder_Click(object sender, EventArgs e)
        {
            var addDialog = new AddFolder();

            addDialog.ShowDialog(this);

            if (addDialog.IsSaved)
            {
                LoadSettings();
            }
        }
        private void gridData_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            if (gridData.SelectedRows.Count > 0)
            {
                var currentRow     = gridData.SelectedRows[0];
                var currentSetting = this._cachedFolderSettings.SingleOrDefault(s => s.FolderName.Equals(currentRow.Cells[0].Value));
                if (currentSetting != null)
                {
                    var editDialog = new AddFolder(currentSetting);
                    editDialog.ShowDialog(this);

                    if (editDialog.IsSaved)
                    {
                        LoadSettings();
                    }
                }
            }
        }