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