file assoc

This commit is contained in:
Manuel Kamper 2019-04-05 21:18:55 +02:00
parent 15ccbd6bdc
commit 522226bec7
2 changed files with 4 additions and 3 deletions

View File

@ -29,17 +29,16 @@ namespace Mk0.Tools.FileAssociaton
public static void Remove(string progId, string extension, string applicationFilePath, string fileTypeDescription, string iconPath) 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) 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) private static bool SetAssociation(string extension, string progId, string fileTypeDescription, string applicationFilePath, string iconPath)
{ {
//todo add file assoc icon
bool madeChanges = false; bool madeChanges = false;
madeChanges |= SetKeyDefaultValue(@"Software\Classes\" + extension, progId); madeChanges |= SetKeyDefaultValue(@"Software\Classes\" + extension, progId);
madeChanges |= SetKeyDefaultValue(@"Software\Classes\" + progId, fileTypeDescription); madeChanges |= SetKeyDefaultValue(@"Software\Classes\" + progId, fileTypeDescription);

View File

@ -51,6 +51,8 @@ namespace Mk0.Software.ImageSorter
DoubleBuffered = true; DoubleBuffered = true;
SetDefaultPath(); SetDefaultPath();
comboBoxZoom.SelectedIndex = Properties.Settings.Default.zoom; comboBoxZoom.SelectedIndex = Properties.Settings.Default.zoom;
//todo file assoc prüfen
} }
private void Main_Load(object sender, EventArgs e) private void Main_Load(object sender, EventArgs e)