data_chpt.Rows.Clear();\r
int i = 0;\r
int rowCount = 0;\r
+ int start = 0;\r
+ int finish = 0;\r
if (drop_chapterFinish.Text != "Auto")\r
- rowCount = int.Parse(drop_chapterFinish.Text);\r
+ finish = int.Parse(drop_chapterFinish.Text);\r
+\r
+ if (drop_chapterStart.Text != "Auto")\r
+ start = int.Parse(drop_chapterStart.Text);\r
+\r
+ rowCount = finish - (start -1);\r
+\r
while (i < rowCount)\r
{\r
DataGridViewRow row = new DataGridViewRow();\r
\r
data_chpt.Rows.Insert(i, row);\r
data_chpt.Rows[i].Cells[0].Value = (i + 1);\r
- data_chpt.Rows[i].Cells[1].Value = "Chapter" + (i + 1);\r
+ data_chpt.Rows[i].Cells[1].Value = "Chapter " + (i + 1);\r
i++;\r
}\r
}\r
csv.Append(row.Cells[0].Value.ToString());\r
csv.Append(",");\r
csv.Append(row.Cells[1].Value.ToString());\r
- csv.Append("\n");\r
+ csv.Append(Environment.NewLine);\r
\r
}\r
StreamWriter file = new StreamWriter(path);\r