Skip to content

Commit 5f01063

Browse files
committed
fix replace job
1 parent a69bb7c commit 5f01063

5 files changed

Lines changed: 3 additions & 2 deletions

File tree

.vs/LFAR/v16/.suo

12 KB
Binary file not shown.
0 Bytes
Binary file not shown.

LFAR/Form1.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,10 +206,11 @@ private void buttonDoReplaceJob_Click(object sender, EventArgs e)
206206
i++;
207207
string line = sr.ReadLine();
208208

209-
if (line.Contains(row.Cells[1].Value.ToString()))
209+
if (line == row.Cells[1].Value.ToString())
210210
replacesCount++;
211211

212-
line = row.Cells[2].Value.ToString();
212+
if (line == row.Cells[1].Value.ToString())
213+
line = line.Replace(line, row.Cells[2].Value.ToString());
213214

214215
text = text + line + Environment.NewLine;
215216

LFAR/obj/Debug/LFAR.exe

0 Bytes
Binary file not shown.

LFAR/obj/Debug/LFAR.pdb

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)