Skip to content

Commit bab3c75

Browse files
committed
Use the action from the form instead of harcoded
1 parent 0af6791 commit bab3c75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PatternFileMover/NameAssociationsForm.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ private void button1_Click(object sender, EventArgs e)
191191
nameAssociationsData.Add(new NameAssociationsData_v3() {
192192
Name = dataGridViewRow.Cells[(int)NameAssociationCellIndex.Name].Value?.ToString() ?? "",
193193
SearchPattern = dataGridViewRow.Cells[(int)NameAssociationCellIndex.SearchPattern].Value.ToString(),
194-
Action = AvailableActions.Move,
194+
Action = (AvailableActions) dataGridViewRow.Cells[(int)NameAssociationCellIndex.Action].Value,
195195
TargetDirectory = dataGridViewRow.Cells[(int)NameAssociationCellIndex.TargetDirectory].Value.ToString(),
196196
FileExtension = dataGridViewRow.Cells[(int)NameAssociationCellIndex.FileExension].Value.ToString()
197197
});

0 commit comments

Comments
 (0)