Skip to content

Commit e6eaeb3

Browse files
committed
Added export back first functionality. Fixed file menu close option.
1 parent 26da323 commit e6eaeb3

File tree

3 files changed

+37
-10
lines changed

3 files changed

+37
-10
lines changed

PdfConstruct/PdfConstructForm.Designer.cs

Lines changed: 14 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

PdfConstruct/PdfConstructForm.cs

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,11 @@ private void btnMoveUp_Click(object sender, EventArgs e)
217217
ListViewAssist.MoveListViewItems(listViewCards, -1);
218218
}
219219

220+
private void closeToolStripMenuItem_Click(object sender, EventArgs e)
221+
{
222+
this.Close();
223+
}
224+
220225
private void listViewCards_KeyDown(object sender, KeyEventArgs e)
221226
{
222227
if (e.Shift)
@@ -317,16 +322,24 @@ private List<string> GetFilesList()
317322
nCardCount = 0;
318323
}
319324

325+
var listCardFaces = new List<string>();
326+
if (!string.IsNullOrWhiteSpace(sCardFace))
327+
{
328+
listCardFaces.Add(sCardFace);
329+
}
330+
if (!string.IsNullOrWhiteSpace(sCardBack))
331+
{
332+
listCardFaces.Add(sCardBack);
333+
}
334+
if (checkBoxBacksFirst.Checked && 1 < listCardFaces.Count)
335+
{
336+
listCardFaces.Insert(0, listCardFaces[1]);
337+
listCardFaces.RemoveAt(2);
338+
}
339+
320340
for (var nCount = 0; nCount < nCardCount; nCount++)
321341
{
322-
if (!string.IsNullOrWhiteSpace(sCardFace))
323-
{
324-
listFiles.Add(sCardFace);
325-
}
326-
if (!string.IsNullOrWhiteSpace(sCardBack))
327-
{
328-
listFiles.Add(sCardBack);
329-
}
342+
listFiles.AddRange(listCardFaces);
330343
}
331344
}
332345
return listFiles;

PdfConstruct/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@
3232
// You can specify all the values or you can default the Build and Revision Numbers
3333
// by using the '*' as shown below:
3434
// [assembly: AssemblyVersion("1.0.*")]
35-
[assembly: AssemblyVersion("0.0.0.3")]
36-
[assembly: AssemblyFileVersion("0.0.0.3")]
35+
[assembly: AssemblyVersion("0.0.0.4")]
36+
[assembly: AssemblyFileVersion("0.0.0.4")]

0 commit comments

Comments
 (0)