Пример #1
0
 private void btnRegisterAssociation_Click(object sender, EventArgs e)
 {
     RegistrationHelper.RegisterFileAssociations(
         APP_ID, false, Windows7Taskbar.GetCurrentProcessAppId(),
         Assembly.GetExecutingAssembly().Location + " /doc:%1",
         ".rtf");
 }
Пример #2
0
 private void registerFileExtensionsToolStripMenuItem_Click(object sender, EventArgs e)
 {
     RegistrationHelper.RegisterFileAssociations(
         progId,
         false,  //TODO: Access denied to HKCU\Software\Classes, check why
         Windows7Taskbar.GetCurrentProcessAppId(),
         Assembly.GetEntryAssembly().Location + " /doc:%1",
         ".txt");
 }