private static void LoadRegistrySettings(SettingsStorage settings) { foreach (var extension in PredefinedData.SupportedExtensions) { var fileAssociation = new FileAssociation(extension); if (fileAssociation.Exists) { settings.AddRegisteredExtension(extension); } } }
private static void UnregisterExtension(string extension) { var fileAssociation = new FileAssociation(extension); fileAssociation.Remove(); }
private static void RegisterExtension(string extension) { var fileAssociation = new FileAssociation(extension); fileAssociation.SetOpeningProgram(PredefinedData.ProgramExecutable); }