public static void RegisterToSharpDevelop(FiletypeAssociation type) { string mainExe = Assembly.GetEntryAssembly().Location; RegisterFiletype(type.Extension, type.Text, '"' + Path.GetFullPath(mainExe) + '"' + " \"%1\"", Path.GetFullPath(type.Icon)); }
public ListEntry(FiletypeAssociation association) { this.Association = association; this.InitiallyChecked = RegisterFiletypesCommand.IsRegisteredToSharpDevelop(association.Extension); }