From 17a71f1317e7465f5f85d6523441d4ab16fa2113 Mon Sep 17 00:00:00 2001 From: Manuel Kamper Date: Sun, 18 Aug 2024 22:37:08 +0200 Subject: [PATCH] added webp format again --- Mk0.Software.ImageSorter/Main.Designer.cs | 2 +- Mk0.Software.ImageSorter/Main.cs | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Mk0.Software.ImageSorter/Main.Designer.cs b/Mk0.Software.ImageSorter/Main.Designer.cs index 05c0fcf..ce989b2 100644 --- a/Mk0.Software.ImageSorter/Main.Designer.cs +++ b/Mk0.Software.ImageSorter/Main.Designer.cs @@ -920,7 +920,7 @@ this.konvertierenF7ToolStripMenuItem.Name = "konvertierenF7ToolStripMenuItem"; this.konvertierenF7ToolStripMenuItem.Size = new System.Drawing.Size(281, 32); this.konvertierenF7ToolStripMenuItem.Text = "Konvertieren (F7)"; - this.konvertierenF7ToolStripMenuItem.Click += new System.EventHandler(this.KonvertierenF7ToolStripMenuItem_Click); + this.konvertierenF7ToolStripMenuItem.Click += new System.EventHandler(this.KonvertierenToolStripMenuItem_Click); // // Main // diff --git a/Mk0.Software.ImageSorter/Main.cs b/Mk0.Software.ImageSorter/Main.cs index 9ee7a2f..f765e34 100644 --- a/Mk0.Software.ImageSorter/Main.cs +++ b/Mk0.Software.ImageSorter/Main.cs @@ -69,6 +69,7 @@ namespace Mk0.Software.ImageSorter FileAssociation.Check("Image_Sorter_BMP", Application.ExecutablePath, "BMP Bild", $@"{Application.StartupPath}\AssocIcons\bmp.ico") && FileAssociation.Check("Image_Sorter_TIF", Application.ExecutablePath, "TIF Bild", $@"{Application.StartupPath}\AssocIcons\tif.ico") && FileAssociation.Check("Image_Sorter_TIFF", Application.ExecutablePath, "TIFF Bild", $@"{Application.StartupPath}\AssocIcons\tiff.ico") && + FileAssociation.Check("Image_Sorter_WEBP", Application.ExecutablePath, "WEBP Bild", $@"{Application.StartupPath}\AssocIcons\webp.ico") && FileAssociation.Check("Image_Sorter_HEIC", Application.ExecutablePath, "HEIC Bild", $@"{Application.StartupPath}\AssocIcons\heic.ico")) { Properties.Settings.Default.fileAssociation = true; @@ -137,6 +138,7 @@ namespace Mk0.Software.ImageSorter WriteResource($@"{Application.StartupPath}\AssocIcons\tif.ico", Resources.tif); WriteResource($@"{Application.StartupPath}\AssocIcons\tiff.ico", Resources.tiff); WriteResource($@"{Application.StartupPath}\AssocIcons\heic.ico", Resources.heic); + WriteResource($@"{Application.StartupPath}\AssocIcons\webp.ico", Resources.webp); } /// @@ -601,6 +603,7 @@ namespace Mk0.Software.ImageSorter FileAssociation.Add("Image_Sorter_TIF", ".tif", Application.ExecutablePath, "TIF Bild", $@"{Application.StartupPath}\AssocIcons\tif.ico"); FileAssociation.Add("Image_Sorter_TIFF", ".tiff", Application.ExecutablePath, "TIFF Bild", $@"{Application.StartupPath}\AssocIcons\tiff.ico"); FileAssociation.Add("Image_Sorter_HEIC", ".heic", Application.ExecutablePath, "HEIC Bild", $@"{Application.StartupPath}\AssocIcons\heic.ico"); + FileAssociation.Add("Image_Sorter_WEBP", ".webp", Application.ExecutablePath, "WEBP Bild", $@"{Application.StartupPath}\AssocIcons\webp.ico"); } else { @@ -615,6 +618,7 @@ namespace Mk0.Software.ImageSorter FileAssociation.Remove("Image_Sorter_TIF"); FileAssociation.Remove("Image_Sorter_TIFF"); FileAssociation.Remove("Image_Sorter_HEIC"); + FileAssociation.Remove("Image_Sorter_WEBP"); } } @@ -2279,7 +2283,7 @@ namespace Mk0.Software.ImageSorter /// /// /// - private void KonvertierenF7ToolStripMenuItem_Click(object sender, EventArgs e) + private void KonvertierenToolStripMenuItem_Click(object sender, EventArgs e) { Konverter k = new Konverter(pictureBoxImage.ImageLocation); DialogResult res = k.ShowDialog();