#region ---------< Region: Buttons
>---------
private void btnRegister_Context_Click(object sender, RoutedEventArgs e)
{
//--------<
btnRegister_Context_Click() >--------
//*add additional Context-Menu in
File-Explorer for: Folders, Images, Videos, right-click on background of
folder
String app_Key = "GroupInSubfoldersByDate";
String menu_Title = "≡ SubFolders → Images
@byDate";
String app_Fullname_with_Path = System.AppDomain.CurrentDomain.BaseDirectory + "\\" + System.AppDomain.CurrentDomain.FriendlyName;
//--< Folder >--
String menu_Path = "Folder\\shell" + "\\" + app_Key;
clsRegistry.add_Menu_of_App(menu_Path, menu_Title,
app_Fullname_with_Path," %1" );
//--</ Folder >--
//--< Images > --
menu_Path = "SystemFileAssociations\\image\\shell" + "\\" + app_Key;
clsRegistry.add_Menu_of_App(menu_Path, menu_Title,
app_Fullname_with_Path, " %1");
//--</ Images > --
//--< Videos > --
menu_Path = "SystemFileAssociations\\.mov\\shell" + "\\" + app_Key;
clsRegistry.add_Menu_of_App(menu_Path, menu_Title,
app_Fullname_with_Path, " %1");
menu_Path = "SystemFileAssociations\\.mp4\\shell" + "\\" + app_Key;
clsRegistry.add_Menu_of_App(menu_Path, menu_Title,
app_Fullname_with_Path, " %1");
//--</ Videos > --
//--< Background > --
menu_Path = "Directory\\Background\\shell" + "\\" + app_Key;
clsRegistry.add_Menu_of_App(menu_Path, menu_Title,
app_Fullname_with_Path, " %V");
//--</ Background > --
//--------</
btnRegister_Context_Click() >--------
}
private void btnUnRegister_Context_Click(object sender, RoutedEventArgs e)
{
//--------<
btnUnRegister_Context_Click() >--------
//*remove additional Context-Menu in
File-Explorer for: Folders, Images, Videos, right-click on background of
folder
String app_Key = "GroupInSubfoldersByDate";
String registry_Menu_Path = "Folder\\shell" + "\\" + app_Key;
clsRegistry.fxRegistry_Remove_Key(registry_Menu_Path);
registry_Menu_Path = "SystemFileAssociations\\image\\shell" + "\\" + app_Key;
clsRegistry.fxRegistry_Remove_Key(registry_Menu_Path);
registry_Menu_Path = "SystemFileAssociations\\.mov\\shell" + "\\" + app_Key;
clsRegistry.fxRegistry_Remove_Key(registry_Menu_Path);
registry_Menu_Path = "SystemFileAssociations\\.mp4\\shell" + "\\" + app_Key;
clsRegistry.fxRegistry_Remove_Key(registry_Menu_Path);
registry_Menu_Path = "Directory\\Background\\shell" + "\\" + app_Key;
clsRegistry.fxRegistry_Remove_Key(registry_Menu_Path);
//--------</
btnUnRegister_Context_Click() >--------
}
#endregion ---------</ Region: Buttons
>---------
|