//Exports Selected Swords private void exportIndividualSwordBtn_Click(object sender, EventArgs e) { var selectedSwords = swordGrid.Rows.Cast <DataGridViewRow>().Where(r => r.Cells["Export"].Value != null && (bool)r.Cells["Export"].Value == true); SwordHelper.ExportSwords(selectedSwords, swordGrid.Rows.Cast <DataGridViewRow>(), false, LoadedPath); }
//Exports all Swords private void exportSwordAllBtn_Click(object sender, EventArgs e) { SwordHelper.ExportSwords(swordGrid.Rows.Cast <DataGridViewRow>(), swordGrid.Rows.Cast <DataGridViewRow>(), true, LoadedPath); }