private void mnuEdit_Click(object sender, EventArgs e)
 {
     foreach (DataGridViewRow item in grdConfigurations.SelectedRows)
     {
         ConfigurationItemWindow itemWindow = new ConfigurationItemWindow();
         itemWindow.SetItem(((List <FolderConfiguration>)grdConfigurations.DataSource)[item.Index]);
         itemWindow.ShowDialog();
         return;
     }
 }
        private void mnuCreate_Click(object sender, EventArgs e)
        {
            ConfigurationItemWindow itemWindow = new ConfigurationItemWindow();

            itemWindow.ShowDialog();
        }