From 522226bec7be8a9701df348d4e27b55a8182c7a5 Mon Sep 17 00:00:00 2001 From: Manuel Kamper Date: Fri, 5 Apr 2019 21:18:55 +0200 Subject: [PATCH] file assoc --- Mk0.Software.ImageSorter/FileAssociation.cs | 5 ++--- Mk0.Software.ImageSorter/Main.cs | 2 ++ 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Mk0.Software.ImageSorter/FileAssociation.cs b/Mk0.Software.ImageSorter/FileAssociation.cs index 7971504..20aafac 100644 --- a/Mk0.Software.ImageSorter/FileAssociation.cs +++ b/Mk0.Software.ImageSorter/FileAssociation.cs @@ -29,17 +29,16 @@ namespace Mk0.Tools.FileAssociaton public static void Remove(string progId, string extension, string applicationFilePath, string fileTypeDescription, string iconPath) { - //remove reg + //remove reg todo } public static void Check(string progId, string extension, string applicationFilePath, string fileTypeDescription, string iconPath) { - //add or update reg + //add or update reg todo } private static bool SetAssociation(string extension, string progId, string fileTypeDescription, string applicationFilePath, string iconPath) { - //todo add file assoc icon bool madeChanges = false; madeChanges |= SetKeyDefaultValue(@"Software\Classes\" + extension, progId); madeChanges |= SetKeyDefaultValue(@"Software\Classes\" + progId, fileTypeDescription); diff --git a/Mk0.Software.ImageSorter/Main.cs b/Mk0.Software.ImageSorter/Main.cs index 29b60ba..a6fe7c2 100644 --- a/Mk0.Software.ImageSorter/Main.cs +++ b/Mk0.Software.ImageSorter/Main.cs @@ -51,6 +51,8 @@ namespace Mk0.Software.ImageSorter DoubleBuffered = true; SetDefaultPath(); comboBoxZoom.SelectedIndex = Properties.Settings.Default.zoom; + + //todo file assoc prüfen } private void Main_Load(object sender, EventArgs e)