Skip to content

Commit

Permalink
More functionality, bug fixes, new looks and more! (#22)
Browse files Browse the repository at this point in the history
* Minor update to DatabaseView designer.

* Fixed #15

Cause for app hang was due to a deadlock while creating connections (ex: waiting for Initialization when called by the Init func).

Added new CreateInitialConnection which does not check if the database was initialized and InsertDefaultTables uses the connection instead of null.

* Fixed #16 first point - release image handle when done

* Clear DPFiles at start & fix file handle leak

Fixed the issue where the zip archive file handle was not released even when done; call ReleaseArchiveHandles() at the end of ProcessArchive.

Updated 7zArchive to kill the 7z process tree if it still exists.

* try..catch..me...if..you..can for all archives

try catch ReadMetaFiles, ReadContentFiles and others.

* Added sorting combo & functionality.

* Order by product name not case sensitive, update limit offset for library queries.

* added some remove right click action for library items.

* updated remove actions for product record form

remove now ask for confirmation
remove product is implemented and more advanced than the one on library item.

* fix compiler error

* fixed noImageFound replaced with random image

* Changed logo & app appearance and implemented minor UI perf increase.

* Update nuget packages

* Added new UpdateProductRecord() & UpdateExtractionRecord() along with helper funcs and proprogating changes across DPDatabase

* added delegate w/ 5 args

* Added functionality to modify product records in the product record form.

Note: Doesn't successfully save.

* i have no idea what this is.

* added new RestoreTriggers() and TempDeleteTriggers()

* fixed RemoveValuesWithCondition(), removed transaction?.Dispose() from finally, typo fixes

* removed additional update invocations

TableUpdated and ProductRecordModified() already invokes the event, no need for it twice.

* Updated UpdateRecordQ()

* Fixed #19 - explictly unregister form when closed

* Added new properties for DPAbstractFile

Also removed FileName for DPAbstractArchive since it will be covered by DPAbstractFile.

* Addressed #18, still needs work as content folders are being targetted to DAZ directory root folder.

Added new CalculateChildRelativePath() and CalculateChildRelativeTargetPath() funcs for DPFolder.

Added GetTargetPath() and propogated changes from DPFolder onto here for DPProcessor.

* Remove Queue tab temporarily; still in designer.

* fixed missing mutex for app

* Minor UI adjustment to DB viewer

Anchored button and combobox to the right.

* Removed tool strip and other unused UI elements.

* Added about form, logo links to about form

* slight fix for out of bounds exception thrown here

* Added new settings

* Settings is now using JSON.Net & using serialization

* fixed NoImageFound property returning null

* Addresses #21 - tags, etc now have char limits

Tags, Product Name, Author, SKU, Folders, Files, errored files, now have char limits.

* minor ui change - modified text anchor

* fixed settings invalid messasge always showing up

* fixed length of n + 1 instead of n

* Prevent >70 char limit for tags

* Disable thumbnail strip if no image is shown.

* update version
  • Loading branch information
siblount authored Jan 3, 2023
1 parent d7c659e commit 2b6ab19
Show file tree
Hide file tree
Showing 60 changed files with 16,450 additions and 704 deletions.
Binary file added Assets/Logo2-256x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Assets/favicon.ico
Binary file not shown.
10 changes: 5 additions & 5 deletions src/Custom Controls/Extract.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 2 additions & 14 deletions src/Custom Controls/Extract.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ public Extract()
{
InitializeComponent();
ExtractPage = this;
tabControl1.TabPages.Remove(queuePage);
queuePage.Dispose();
}

internal void AddToList(DPAbstractArchive archive)
Expand Down Expand Up @@ -264,20 +266,6 @@ public void OpenFileInExplorer(string path)
}
#endregion

private void queueList_SelectedIndexChanged(object sender, EventArgs e)
{

}

private void treeView1_AfterSelect(object sender, TreeViewEventArgs e)
{

}

private void splitContainer1_Panel2_Paint(object sender, PaintEventArgs e)
{

}
}

}
Expand Down
2 changes: 1 addition & 1 deletion src/Custom Controls/Extract.resx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
AAEAAAD/////AQAAAAAAAAAMAgAAAEZTeXN0ZW0uV2luZG93cy5Gb3JtcywgQ3VsdHVyZT1uZXV0cmFs
LCBQdWJsaWNLZXlUb2tlbj1iNzdhNWM1NjE5MzRlMDg5BQEAAAAmU3lzdGVtLldpbmRvd3MuRm9ybXMu
SW1hZ2VMaXN0U3RyZWFtZXIBAAAABERhdGEHAgIAAAAJAwAAAA8DAAAAlgkAAAJNU0Z0AUkBTAIBAQMB
AAFIAQABSAEAARABAAEQAQAE/wEJAQAI/wFCAU0BNgEEBgABNgEEAgABKAMAAUADAAEQAwABAQEAAQgG
AAFwAQABcAEAARABAAEQAQAE/wEJAQAI/wFCAU0BNgEEBgABNgEEAgABKAMAAUADAAEQAwABAQEAAQgG
AAEEGAABgAIAAYADAAKAAQABgAMAAYABAAGAAQACgAIAA8ABAAHAAdwBwAEAAfABygGmAQABMwUAATMB
AAEzAQABMwEAAjMCAAMWAQADHAEAAyIBAAMpAQADVQEAA00BAANCAQADOQEAAYABfAH/AQACUAH/AQAB
kwEAAdYBAAH/AewBzAEAAcYB1gHvAQAB1gLnAQABkAGpAa0CAAH/ATMDAAFmAwABmQMAAcwCAAEzAwAC
Expand Down
79 changes: 30 additions & 49 deletions src/Custom Controls/Home.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

44 changes: 11 additions & 33 deletions src/Custom Controls/Home.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,30 +17,14 @@ namespace DAZ_Installer
{
public partial class Home : UserControl
{
public static Color initialHomePanelColor;
public static Home HomePage;
public Home()
{
InitializeComponent();
HomePage = this;
}

private void homePage_Load(object sender, EventArgs e)
{
initialHomePanelColor = dragHerePanel.BackColor;
}

private void dragHerePanel_MouseEnter(object sender, EventArgs e)
{
dragHerePanel.BackColor = Color.FromArgb(255, initialHomePanelColor);
}

private void dragHerePanel_MouseLeave(object sender, EventArgs e)
{
dragHerePanel.BackColor = initialHomePanelColor;
}

private void dragHerePanel_Click(object sender, EventArgs e)
private void dropBtn_Click(object sender, EventArgs e)
{
HandleOpenDialogue();
}
Expand All @@ -61,18 +45,18 @@ internal void button1_Click(object sender, EventArgs e)
clearListBtn_Click(null, null);
}

private void dragHerePanel_DragEnter(object sender, DragEventArgs e)
private void dropBtn_DragEnter(object sender, DragEventArgs e)
{
dropText.Text = "Drop here!";
dropBtn.Text = "Drop here!";
e.Effect = DPCommon.dropEffect;
}

private void dragHerePanel_DragLeave(object sender, EventArgs e)
private void dropBtn_DragLeave(object sender, EventArgs e)
{
dropText.Text = "Click here to select file(s) or drag them here.";
dropBtn.Text = "Click here to select file(s) or drag them here.";
}

private void dragHerePanel_DragDrop(object sender, DragEventArgs e)
private void dropBtn_DragDrop(object sender, DragEventArgs e)
{
string[] tmp = (string[]) e.Data.GetData(DataFormats.FileDrop, false);
Queue<string> invalidFiles = new();
Expand Down Expand Up @@ -106,11 +90,9 @@ private void dragHerePanel_DragDrop(object sender, DragEventArgs e)
MessageBoxIcon.Warning);
}
if (listView1.Items.Count != 0 )
{
dragHerePanel.Visible = false;
dragHerePanel.Enabled = false;
}
dropText.Text = "Click here to select file(s) or drag them here.";
dropBtn.Visible = dropBtn.Enabled = false;

dropBtn.Text = "Click here to select file(s) or drag them here.";
}

private void removeToolStripMenuItem_Click(object sender, EventArgs e)
Expand All @@ -129,12 +111,8 @@ private void addMoreFilesBtn_Click(object sender, EventArgs e)

private void controlDragPanel(bool visible)
{
dragHerePanel.Visible = visible;
dragHerePanel.Enabled = visible;
if (visible)
{
dragHerePanel.BringToFront();
}
dropBtn.Visible = dropBtn.Enabled = visible;
if (visible) dropBtn.BringToFront();
}

private void HandleOpenDialogue()
Expand Down
Loading

0 comments on commit 2b6ab19

Please sign in to comment.