Skip to content

Commit

Permalink
Delete entry now also offers to delete the file
Browse files Browse the repository at this point in the history
  • Loading branch information
ErisLoona committed May 18, 2024
1 parent 60894d7 commit ecc2016
Show file tree
Hide file tree
Showing 39 changed files with 29 additions and 14 deletions.
Binary file modified .vs/Manga Library Manager/DesignTimeBuild/.dtbcache.v2
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified .vs/Manga Library Manager/v17/.futdcache.v2
Binary file not shown.
Binary file modified .vs/Manga Library Manager/v17/.suo
Binary file not shown.
5 changes: 3 additions & 2 deletions .vs/Manga Library Manager/v17/DocumentLayout.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"RelativeDocumentMoniker": "mainMenu.cs",
"ToolTip": "C:\\Users\\rares\\Documents\\Misc Programs\\Programming\\Manga Library Manager\\mainMenu.cs",
"RelativeToolTip": "mainMenu.cs",
"ViewState": "AQIAALYAAAAAAAAAAAAYwNAAAAAXAAAA",
"ViewState": "AQIAAO0BAAAAAAAAAAAkwBkCAAAUAAAA",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2024-05-12T16:16:26.664Z",
"EditorCaption": ""
Expand All @@ -42,7 +42,8 @@
"ToolTip": "C:\\Users\\rares\\Documents\\Misc Programs\\Programming\\Manga Library Manager\\mainMenu.cs [Design]",
"RelativeToolTip": "mainMenu.cs [Design]",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2024-05-12T15:05:38.016Z"
"WhenOpened": "2024-05-12T15:05:38.016Z",
"EditorCaption": " [Design]"
}
]
}
Expand Down
Binary file modified .vs/ProjectEvaluation/manga library manager.metadata.v7.bin
Binary file not shown.
Binary file modified .vs/ProjectEvaluation/manga library manager.projects.v7.bin
Binary file not shown.
2 changes: 1 addition & 1 deletion Properties/PublishProfiles/FolderProfile.pubxml.user
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
-->
<Project>
<PropertyGroup>
<History>True|2024-05-17T09:48:43.3293227Z;True|2024-05-17T09:31:58.9329403+02:00;True|2024-05-17T09:25:57.4957904+02:00;True|2024-05-16T19:52:10.0997229+02:00;True|2024-05-16T18:17:01.7850021+02:00;True|2024-05-15T09:33:00.6957135+02:00;True|2024-05-15T08:32:31.7735956+02:00;True|2024-05-13T17:25:21.1454345+02:00;True|2024-05-13T17:15:09.7285346+02:00;True|2024-05-13T16:52:20.9054581+02:00;True|2024-05-13T16:51:27.0891569+02:00;True|2024-05-13T16:50:34.5522468+02:00;True|2024-05-13T16:49:22.6946988+02:00;</History>
<History>True|2024-05-18T05:41:43.4161277Z;True|2024-05-17T11:48:43.3293227+02:00;True|2024-05-17T09:31:58.9329403+02:00;True|2024-05-17T09:25:57.4957904+02:00;True|2024-05-16T19:52:10.0997229+02:00;True|2024-05-16T18:17:01.7850021+02:00;True|2024-05-15T09:33:00.6957135+02:00;True|2024-05-15T08:32:31.7735956+02:00;True|2024-05-13T17:25:21.1454345+02:00;True|2024-05-13T17:15:09.7285346+02:00;True|2024-05-13T16:52:20.9054581+02:00;True|2024-05-13T16:51:27.0891569+02:00;True|2024-05-13T16:50:34.5522468+02:00;True|2024-05-13T16:49:22.6946988+02:00;</History>
<LastFailureDetails />
</PropertyGroup>
</Project>
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Manga Library Manager
This is a manager for personal use that allows me to organize and keep track of ongoing releases of Mangas. It checks the `content.opf` file inside a `.epub` archive to get the title and last chapter listed in the description of the "book".</br>
This is unique to how I like to organize my mangas, downloading chapters individually leads to many small files that are not coherent, so using Calibre I merge them into one file with the description listing all the chapters formatted as, for example, `Ch.001`. The program executable is meant to stay on the removable drive where I store my mangas, allowing me to scan the drive for new additions and update old entries in terms of what chapter they got to compared to what I obtain from the MangaDex API.</br>
[Download .exe](https://github.com/ErisLoona/Manga-Library-Manager/releases/tag/v1.1)
[Download .exe](https://github.com/ErisLoona/Manga-Library-Manager/releases/tag/v1.2)
16 changes: 15 additions & 1 deletion mainMenu.cs
Original file line number Diff line number Diff line change
Expand Up @@ -441,8 +441,22 @@ private void checkOnlineButton_Click(object sender, EventArgs e)
private void deleteEntryButton_Click(object sender, EventArgs e)
{
if (sender == deleteEntryButton)
if (MessageBox.Show("Are you sure you want to delete this entry?", "Deletion confirmation", MessageBoxButtons.YesNo, MessageBoxIcon.Warning) == DialogResult.No)
{
DialogResult result = MessageBox.Show("Would you like to also delete the file?", "Deletion confirmation", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Warning);
if (result == DialogResult.Cancel)
return;
else if (result == DialogResult.Yes)
{
try
{
File.Delete(((eBook)mangaList.SelectedItem).Path);
}
catch
{
MessageBox.Show("Could not delete file!", "Write error", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
}
books.Remove(((eBook)mangaList.SelectedItem));
searchTextBoxAutomcompleteStrings.Remove(((eBook)mangaList.SelectedItem).Title);
mangaList.Items.RemoveAt(mangaList.SelectedIndex);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
[assembly: System.Reflection.AssemblyCompanyAttribute("Manga Library Manager")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+97f16a4814eba73f4639a2e0ab12e3f8eabf5b12")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+60894d7a0fe9b86feab8707d18e22226ea6bc2c4")]
[assembly: System.Reflection.AssemblyProductAttribute("Manga Library Manager")]
[assembly: System.Reflection.AssemblyTitleAttribute("Manga Library Manager")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
cf1b147f910b7e4886caca4428d13f016ff7b20c68240e19e75c5e1c78d0f5dc
588240c56d3d6c2638232ff7d3b605b9309b967b4b394d9fb9ba3b84a67d8b01
Binary file not shown.
Binary file modified obj/Debug/net8.0-windows/Manga Library Manager.dll
Binary file not shown.
Binary file modified obj/Debug/net8.0-windows/Manga Library Manager.pdb
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"documents":{"C:\\Users\\rares\\Documents\\Misc Programs\\Programming\\Manga Library Manager\\*":"https://raw.githubusercontent.com/ErisLoona/Manga-Library-Manager/97f16a4814eba73f4639a2e0ab12e3f8eabf5b12/*"}}
{"documents":{"C:\\Users\\rares\\Documents\\Misc Programs\\Programming\\Manga Library Manager\\*":"https://raw.githubusercontent.com/ErisLoona/Manga-Library-Manager/60894d7a0fe9b86feab8707d18e22226ea6bc2c4/*"}}
Binary file modified obj/Debug/net8.0-windows/apphost.exe
Binary file not shown.
Binary file modified obj/Debug/net8.0-windows/ref/Manga Library Manager.dll
Binary file not shown.
Binary file modified obj/Debug/net8.0-windows/refint/Manga Library Manager.dll
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
[assembly: System.Reflection.AssemblyCompanyAttribute("Manga Library Manager")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Release")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+97f16a4814eba73f4639a2e0ab12e3f8eabf5b12")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+60894d7a0fe9b86feab8707d18e22226ea6bc2c4")]
[assembly: System.Reflection.AssemblyProductAttribute("Manga Library Manager")]
[assembly: System.Reflection.AssemblyTitleAttribute("Manga Library Manager")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
dfc1607b9c310256712ec1b896bc97c59f6c64b413597fa734e09cb0abffa53e
78a6e72358b3db8da659a703bdb3460c8c5625ef03687cad043d4bc50418096f
Binary file not shown.
Binary file modified obj/Release/net8.0-windows/Manga Library Manager.dll
Binary file not shown.
Binary file modified obj/Release/net8.0-windows/Manga Library Manager.pdb
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"documents":{"C:\\Users\\rares\\Documents\\Misc Programs\\Programming\\Manga Library Manager\\*":"https://raw.githubusercontent.com/ErisLoona/Manga-Library-Manager/97f16a4814eba73f4639a2e0ab12e3f8eabf5b12/*"}}
{"documents":{"C:\\Users\\rares\\Documents\\Misc Programs\\Programming\\Manga Library Manager\\*":"https://raw.githubusercontent.com/ErisLoona/Manga-Library-Manager/60894d7a0fe9b86feab8707d18e22226ea6bc2c4/*"}}
Binary file modified obj/Release/net8.0-windows/apphost.exe
Binary file not shown.
Binary file modified obj/Release/net8.0-windows/ref/Manga Library Manager.dll
Binary file not shown.
Binary file modified obj/Release/net8.0-windows/refint/Manga Library Manager.dll
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
[assembly: System.Reflection.AssemblyCompanyAttribute("Manga Library Manager")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Release")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+97f16a4814eba73f4639a2e0ab12e3f8eabf5b12")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+60894d7a0fe9b86feab8707d18e22226ea6bc2c4")]
[assembly: System.Reflection.AssemblyProductAttribute("Manga Library Manager")]
[assembly: System.Reflection.AssemblyTitleAttribute("Manga Library Manager")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
dfc1607b9c310256712ec1b896bc97c59f6c64b413597fa734e09cb0abffa53e
78a6e72358b3db8da659a703bdb3460c8c5625ef03687cad043d4bc50418096f
Binary file not shown.
Binary file modified obj/Release/net8.0-windows/win-x64/Manga Library Manager.dll
Binary file not shown.
Binary file modified obj/Release/net8.0-windows/win-x64/Manga Library Manager.pdb
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"documents":{"C:\\Users\\rares\\Documents\\Misc Programs\\Programming\\Manga Library Manager\\*":"https://raw.githubusercontent.com/ErisLoona/Manga-Library-Manager/97f16a4814eba73f4639a2e0ab12e3f8eabf5b12/*"}}
{"documents":{"C:\\Users\\rares\\Documents\\Misc Programs\\Programming\\Manga Library Manager\\*":"https://raw.githubusercontent.com/ErisLoona/Manga-Library-Manager/60894d7a0fe9b86feab8707d18e22226ea6bc2c4/*"}}
Binary file modified obj/Release/net8.0-windows/win-x64/apphost.exe
Binary file not shown.
Binary file modified obj/Release/net8.0-windows/win-x64/ref/Manga Library Manager.dll
Binary file not shown.
Binary file not shown.

0 comments on commit ecc2016

Please sign in to comment.