コード例 #1
0
 static PNCommands()
 {
     _NewNote = new PNRoutedUICommand("New Note", "cmdNewNote", typeof(PNCommands))
     {
         Type = CommandType.NewNote
     };
     _LoadNote = new PNRoutedUICommand("Load Note", "cmdLoadNotes", typeof(PNCommands))
     {
         Type = CommandType.LoadNote
     };
     _NoteFromClipboard = new PNRoutedUICommand("New Note From Clipboard", "cmdNoteFromCB", typeof(PNCommands))
     {
         Type = CommandType.NoteFromClipboard
     };
     _DuplicateNote = new PNRoutedUICommand("Duplicate Note", "cmdDuplicate", typeof(PNCommands))
     {
         Type = CommandType.DuplicateNote
     };
     _SaveAsShortcut = new PNRoutedUICommand("Save As Desktop Shortcut", "mnuSaveAsShortcut", typeof(PNCommands))
     {
         Section = "note_menu",
         Type    = CommandType.SaveAsShortcut
     };
     _Diary = new PNRoutedUICommand("Diary", "cmdDiary", typeof(PNCommands))
     {
         Type = CommandType.Diary
     };
     _Today = new PNRoutedUICommand("Today", "mnuTodayDiary", typeof(PNCommands))
     {
         Section = "main_menu",
         Type    = CommandType.Today
     };
     _Save = new PNRoutedUICommand("Save", "cmdSave", typeof(PNCommands))
     {
         Type = CommandType.Save
     };
     _SaveAs = new PNRoutedUICommand("Save As", "cmdSaveAs", typeof(PNCommands))
     {
         Type = CommandType.SaveAs
     };
     _SaveAsText = new PNRoutedUICommand("Save As Text File", "cmdSaveAsText", typeof(PNCommands))
     {
         Type = CommandType.SaveAsText
     };
     _RestoreFromBackup = new PNRoutedUICommand("Restore From Backup", "cmdRestoreFromBackup",
                                                typeof(PNCommands))
     {
         Type = CommandType.RestoreFromBackup
     };
     _Print = new PNRoutedUICommand("Print", "cmdPrint", typeof(PNCommands))
     {
         Type = CommandType.Print
     };
     _Adjust = new PNRoutedUICommand("Adjust", "cmdAdjust", typeof(PNCommands))
     {
         Type = CommandType.Adjust
     };
     _AdjustAppearance = new PNRoutedUICommand("Adjust Appearance", "mnuAdjustAppearance", typeof(PNCommands))
     {
         Section = "note_menu",
         Type    = CommandType.AdjustAppearance
     };
     _AdjustSchedule = new PNRoutedUICommand("Adjust Schedule", "mnuAdjustSchedule", typeof(PNCommands))
     {
         Section = "note_menu",
         Type    = CommandType.AdjustSchedule
     };
     _Delete = new PNRoutedUICommand("Delete Note", "cmdDelete", typeof(PNCommands))
     {
         Type = CommandType.Delete
     };
     _SaveAll = new PNRoutedUICommand("Save All", "cmdSaveAll", typeof(PNCommands))
     {
         Type = CommandType.SaveAll
     };
     _BackupSync = new PNRoutedUICommand("Backup/Synchronization", "cmdBackup", typeof(PNCommands))
     {
         Type = CommandType.BackupSync
     };
     _BackupCreate = new PNRoutedUICommand("Create Full Backup", "mnuBackupCreate", typeof(PNCommands))
     {
         Section = "main_menu",
         Type    = CommandType.BackupCreate
     };
     _BackupRestore = new PNRoutedUICommand("Restore From Full Backup", "mnuBackupRestore", typeof(PNCommands))
     {
         Section = "main_menu",
         Type    = CommandType.BackupRestore
     };
     _SyncLocal = new PNRoutedUICommand("Manual Local Synchronization", "mnuSyncLocal", typeof(PNCommands))
     {
         Section = "main_menu",
         Type    = CommandType.SyncLocal
     };
     _ImportNotes = new PNRoutedUICommand("Import Notes From PNotes", "mnuImportNotes", typeof(PNCommands))
     {
         Section = "main_menu",
         Type    = CommandType.ImportNotes
     };
     _ImportSettings = new PNRoutedUICommand("Import Settings From PNotes", "mnuImportSettings", typeof(PNCommands))
     {
         Section = "main_menu",
         Type    = CommandType.ImportSettings
     };
     _ImportFonts = new PNRoutedUICommand("Import Fonts From PNotes", "mnuImportFonts", typeof(PNCommands))
     {
         Section = "main_menu",
         Type    = CommandType.ImportFonts
     };
     _ImportDictionaries = new PNRoutedUICommand("Import Dictionaries From PNotes", "mnuImportDictionaries", typeof(PNCommands))
     {
         Section = "main_menu",
         Type    = CommandType.ImportDictionaries
     };
     _Placement = new PNRoutedUICommand("Placement/Visibility", "cmdPlacement", typeof(PNCommands))
     {
         Type = CommandType.Placement
     };
     _DockAll = new PNRoutedUICommand("Docking (All Notes)", "mnuDockAll", typeof(PNCommands))
     {
         Section = "main_menu",
         Type    = CommandType.DockAll
     };
     _DockAllNone = new PNRoutedUICommand("None", "mnuDAllNone", typeof(PNCommands))
     {
         Section = "main_menu",
         Type    = CommandType.DockAllNone
     };
     _DockAllLeft = new PNRoutedUICommand("Left", "mnuDAllLeft", typeof(PNCommands))
     {
         Section = "main_menu",
         Type    = CommandType.DockAllLeft
     };
     _DockAllTop = new PNRoutedUICommand("Top", "mnuDAllTop", typeof(PNCommands))
     {
         Section = "main_menu",
         Type    = CommandType.DockAllTop
     };
     _DockAllRight = new PNRoutedUICommand("Right", "mnuDAllRight", typeof(PNCommands))
     {
         Section = "main_menu",
         Type    = CommandType.DockAllRight
     };
     _DockAllBottom = new PNRoutedUICommand("Bottom", "mnuDAllBottom", typeof(PNCommands))
     {
         Section = "main_menu",
         Type    = CommandType.DockAllBottom
     };
     _Visibility = new PNRoutedUICommand("Visibility", "mnuVisibility", typeof(PNCommands))
     {
         Section = "main_menu",
         Type    = CommandType.Visibility
     };
     _ShowNote = new PNRoutedUICommand("Show", "mnuShowNote", typeof(PNCommands))
     {
         Section = "main_menu",
         Type    = CommandType.ShowNote
     };
     _ShowAll = new PNRoutedUICommand("Show All", "mnuShowAll", typeof(PNCommands))
     {
         Section = "main_menu",
         Type    = CommandType.ShowAll
     };
     _HideNote = new PNRoutedUICommand("Hide", "mnuHideNote", typeof(PNCommands))
     {
         Section = "main_menu",
         Type    = CommandType.HideNote
     };
     _HideAll = new PNRoutedUICommand("Hide All", "mnuHideAll", typeof(PNCommands))
     {
         Section = "main_menu",
         Type    = CommandType.HideAll
     };
     _AllToFront = new PNRoutedUICommand("Bring All To Front", "mnuAllToFront", typeof(PNCommands))
     {
         Section = "main_menu",
         Type    = CommandType.AllToFront
     };
     _Centralize = new PNRoutedUICommand("Centralize", "mnuCentralize", typeof(PNCommands))
     {
         Section = "main_menu",
         Type    = CommandType.Centralize
     };
     _SendAsText = new PNRoutedUICommand("Send As Text", "cmdSendAsText", typeof(PNCommands))
     {
         Type = CommandType.SendAsText
     };
     _SendAsAttachment = new PNRoutedUICommand("Send As Attachment", "cmdSendAsAttachment", typeof(PNCommands))
     {
         Type = CommandType.SendAsAttachment
     };
     _SendAsZip = new PNRoutedUICommand("Send In ZIP Archive", "cmdSendZip", typeof(PNCommands))
     {
         Type = CommandType.SendAsZip
     };
     _SendNetwork = new PNRoutedUICommand("Send Via Network", "cmdSendNetwork", typeof(PNCommands))
     {
         Type = CommandType.SendNetwork
     };
     _ContactAdd = new PNRoutedUICommand("Add Contact", "mnuAddContact", typeof(PNCommands))
     {
         Section = "note_menu",
         Type    = CommandType.ContactAdd
     };
     _ContactGroupAdd = new PNRoutedUICommand("Add Group Of Contacts", "mnuAddGroup", typeof(PNCommands))
     {
         Section = "note_menu",
         Type    = CommandType.ContactGroupAdd
     };
     _ContactSelect = new PNRoutedUICommand("Select Contacts", "mnuSelectContact", typeof(PNCommands))
     {
         Section = "note_menu",
         Type    = CommandType.ContactSelect
     };
     _ContactGroupSelect = new PNRoutedUICommand("Select Groups Of Contacts", "mnuSelectGroup", typeof(PNCommands))
     {
         Section = "note_menu",
         Type    = CommandType.ContactGroupSelect
     };
     _Tags = new PNRoutedUICommand("Tags", "cmdTags", typeof(PNCommands))
     {
         Type = CommandType.Tags
     };
     _TagsCurrent = new PNRoutedUICommand("Tags (current note)", "mnuTagsCurrent", typeof(PNCommands))
     {
         Section = "main_menu",
         Type    = CommandType.TagsCurrent
     };
     _TagsShowBy = new PNRoutedUICommand("Show By Tag", "mnuShowByTag", typeof(PNCommands))
     {
         Section = "main_menu",
         Type    = CommandType.TagsShowBy
     };
     _TagsHideBy = new PNRoutedUICommand("Hide By Tag", "mnuHideByTag", typeof(PNCommands))
     {
         Section = "main_menu",
         Type    = CommandType.TagsHideBy
     };
     _Switches = new PNRoutedUICommand("Switches", "cmdSwitches", typeof(PNCommands))
     {
         Type = CommandType.Switches
     };
     _OnTop = new PNRoutedUICommand("On Top", "mnuOnTop", typeof(PNCommands))
     {
         Section = "note_menu",
         Type    = CommandType.OnTop
     };
     _HighPriority = new PNRoutedUICommand("Toggle High Priority", "mnuToggleHighPriority", typeof(PNCommands))
     {
         Section = "note_menu",
         Type    = CommandType.HighPriority
     };
     _ProtectionMode = new PNRoutedUICommand("Toggle Protection Mode", "mnuToggleProtectionMode", typeof(PNCommands))
     {
         Section = "note_menu",
         Type    = CommandType.ProtectionMode
     };
     _SetNotePassword = new PNRoutedUICommand("Set Note Password", "mnuSetPassword", typeof(PNCommands))
     {
         Section = "note_menu",
         Type    = CommandType.SetNotePassword
     };
     _RemoveNotePassword = new PNRoutedUICommand("Remove Note Password", "mnuRemovePassword", typeof(PNCommands))
     {
         Section = "note_menu",
         Type    = CommandType.RemoveNotePassword
     };
     _MarkAsComplete = new PNRoutedUICommand("Mark As Complete", "mnuMarkAsComplete", typeof(PNCommands))
     {
         Section = "note_menu",
         Type    = CommandType.MarkAsComplete
     };
     _RollUnroll = new PNRoutedUICommand("Roll/Unroll", "mnuRollUnroll", typeof(PNCommands))
     {
         Section = "note_menu",
         Type    = CommandType.RollUnroll
     };
     _Pin = new PNRoutedUICommand("Pin To Window", "mnuPin", typeof(PNCommands))
     {
         Section = "note_menu",
         Type    = CommandType.Pin
     };
     _Unpin = new PNRoutedUICommand("Unpin", "mnuUnpin", typeof(PNCommands))
     {
         Section = "note_menu",
         Type    = CommandType.Unpin
     };
     _Scramble = new PNRoutedUICommand("Encrypt text", "mnuScramble", typeof(PNCommands))
     {
         Section = "note_menu",
         Type    = CommandType.Scramble
     };
     _Unscramble = new PNRoutedUICommand("Decrypt text", "mnuUnscramble", typeof(PNCommands))
     {
         Section = "note_menu",
         Type    = CommandType.Unscramble
     };
     _AddFavorites = new PNRoutedUICommand("Add To Favorites", "cmdFavorites", typeof(PNCommands))
     {
         Type = CommandType.AddFavorites
     };
     _RemoveFavorites = new PNRoutedUICommand("Remove From Favorites", "cmdRemoveFromFavorites", typeof(PNCommands))
     {
         Type = CommandType.RemoveFavorites
     };
     _Run = new PNRoutedUICommand("Run", "cmdRun", typeof(PNCommands))
     {
         Type = CommandType.Run
     };
     _EmptyBin = new PNRoutedUICommand("Empty Recycle Bin", "cmdEmptyBin", typeof(PNCommands))
     {
         Type = CommandType.EmptyBin
     };
     _RestoreNote = new PNRoutedUICommand("Restore Note", "cmdRestoreNote", typeof(PNCommands))
     {
         Type = CommandType.RestoreNote
     };
     _Preview = new PNRoutedUICommand("Preview", "cmdPreview", typeof(PNCommands))
     {
         Type = CommandType.Preview
     };
     _PreviewFromMenu = new PNRoutedUICommand("Preview", "cmdPreview", typeof(PNCommands))
     {
         Type = CommandType.PreviewFromMenu
     };
     _PreviewSettings = new PNRoutedUICommand("Preview Window Background Settings", "cmdPreviewSettings", typeof(PNCommands))
     {
         Type = CommandType.PreviewSettings
     };
     _UseCustColor = new PNRoutedUICommand("Use Custom Color", "mnuUseCustColor", typeof(PNCommands))
     {
         Section = "cp_menu",
         Type    = CommandType.UseCustColor
     };
     _ChooseCustColor = new PNRoutedUICommand("Choose Custom Color", "mnuChooseCustColor", typeof(PNCommands))
     {
         Section = "cp_menu",
         Type    = CommandType.ChooseCustColor
     };
     _PreviewRight = new PNRoutedUICommand("Preview Window On The Right", "cmdPreviewRight", typeof(PNCommands))
     {
         Type = CommandType.PreviewRight
     };
     _PreviewRightFromMenu = new PNRoutedUICommand("Preview Window On The Right", "cmdPreviewRight", typeof(PNCommands))
     {
         Type = CommandType.PreviewRightFromMenu
     };
     _ShowGroups = new PNRoutedUICommand("Show Groups", "cmdShowGroups", typeof(PNCommands))
     {
         Type = CommandType.ShowGroups
     };
     _ShowGroupsFromMenu = new PNRoutedUICommand("Show Groups", "cmdShowGroups", typeof(PNCommands))
     {
         Type = CommandType.ShowGroupsFromMenu
     };
     _ColReset = new PNRoutedUICommand("Reset Columns Width/Visibility", "cmdColReset", typeof(PNCommands))
     {
         Type = CommandType.ColReset
     };
     _HotkeysCP = new PNRoutedUICommand("Hot Keys Management", "cmdHotkeysCP", typeof(PNCommands))
     {
         Type = CommandType.HotkeysCP
     };
     _MenusManagementCP = new PNRoutedUICommand("Menus Management", "cmdMenusManagementCP", typeof(PNCommands))
     {
         Type = CommandType.MenusManagementCP
     };
     _Preferences = new PNRoutedUICommand("Preferences", "cmdPreferences", typeof(PNCommands))
     {
         Type = CommandType.Preferences
     };
     _Password = new PNRoutedUICommand("Password", "cmdPassword", typeof(PNCommands))
     {
         Type = CommandType.Password
     };
     _Search = new PNRoutedUICommand("Search", "cmdSearch", typeof(PNCommands))
     {
         Type = CommandType.Search
     };
     _QuickSearch = new PNRoutedUICommand("Quick Search", "cmdQuickSearch", typeof(PNCommands))
     {
         Type = CommandType.QuickSearch
     };
     _Help = new PNRoutedUICommand("Help", "cmdHelp", typeof(PNCommands))
     {
         Type = CommandType.Help
     };
     _Support = new PNRoutedUICommand("Support PNotes.NET Project", "cmdSupport", typeof(PNCommands))
     {
         Type = CommandType.Support
     };
     _About = new PNRoutedUICommand("About", "mnuAbout", typeof(PNCommands))
     {
         Section = "main_menu",
         Type    = CommandType.About
     };
     _PwrdCreate = new PNRoutedUICommand("Create Password", "mnuPwrdCreate", typeof(PNCommands))
     {
         Section = "cp_menu",
         Type    = CommandType.PwrdCreate
     };
     _PwrdChange = new PNRoutedUICommand("Change Password", "mnuPwrdChange", typeof(PNCommands))
     {
         Section = "cp_menu",
         Type    = CommandType.PwrdChange
     };
     _PwrdRemove = new PNRoutedUICommand("Remove Password", "mnuPwrdRemove", typeof(PNCommands))
     {
         Section = "cp_menu",
         Type    = CommandType.PwrdRemove
     };
     _SearchInNotes = new PNRoutedUICommand("Search In Notes", "mnuSearchInNotes", typeof(PNCommands))
     {
         Section = "main_menu",
         Type    = CommandType.SearchInNotes
     };
     _SearchByTags = new PNRoutedUICommand("Search By Tags", "mnuSearchByTags", typeof(PNCommands))
     {
         Section = "main_menu",
         Type    = CommandType.SearchByTags
     };
     _SearchByDates = new PNRoutedUICommand("Search By Dates", "mnuSearchByDates", typeof(PNCommands))
     {
         Section = "main_menu",
         Type    = CommandType.SearchByDates
     };
     _IncBinInQSearch = new PNRoutedUICommand("Include Notes From Recycle Bin in 'Quick Search'", "mnuIncBinInQSearch", typeof(PNCommands))
     {
         Section = "main_menu",
         Type    = CommandType.IncBinInQSearch
     };
     _ClearQSearch = new PNRoutedUICommand("Clear 'Quick Search'", "mnuClearQSearch", typeof(PNCommands))
     {
         Section = "main_menu",
         Type    = CommandType.ClearQSearch
     };
     _GroupAdd = new PNRoutedUICommand("Add top level group", "cmdAddTopGroup", typeof(PNCommands))
     {
         Type = CommandType.GroupAdd
     };
     _GroupAddSubgroup = new PNRoutedUICommand("Add subgroup to selected group", "cmdAddSubgroup",
                                               typeof(PNCommands))
     {
         Type = CommandType.GroupAddSubgroup
     };
     _GroupEdit = new PNRoutedUICommand("Edit group", "cmdEditGroup", typeof(PNCommands))
     {
         Type = CommandType.GroupEdit
     };
     _GroupRemove = new PNRoutedUICommand("Delete group", "cmdRemoveGroup", typeof(PNCommands))
     {
         Type = CommandType.GroupRemove
     };
     _GroupShow = new PNRoutedUICommand("Show all notes from selected group", "cmdShowAllFromGroup",
                                        typeof(PNCommands))
     {
         Type = CommandType.GroupShow
     };
     _GroupShowAll = new PNRoutedUICommand("Show group (include subgroups)", "cmdShowAllIncSubgroups",
                                           typeof(PNCommands))
     {
         Type = CommandType.GroupShowAll
     };
     _GroupHide = new PNRoutedUICommand("Hide all notes from selected group", "cmdHideAllFromGroup",
                                        typeof(PNCommands))
     {
         Type = CommandType.GroupHide
     };
     _GroupHideAll = new PNRoutedUICommand("Hide group (include subgroups)", "cmdHideAllIncSubgroups",
                                           typeof(PNCommands))
     {
         Type = CommandType.GroupHideAll
     };
     _GroupPassAdd = new PNRoutedUICommand("Set group password", "cmdSetGroupPassword", typeof(PNCommands))
     {
         Type = CommandType.GroupPassAdd
     };
     _GroupPassRemove = new PNRoutedUICommand("Remove group password", "cmdRemoveGroupPassword",
                                              typeof(PNCommands))
     {
         Type = CommandType.GroupPassRemove
     };
 }
コード例 #2
0
ファイル: PNCommands.cs プロジェクト: hyrmedia/PNotes.NET
 static PNCommands()
 {
     _NewNote = new PNRoutedUICommand("New Note", "cmdNewNote", typeof(PNCommands)) { Type = CommandType.NewNote };
     _LoadNote = new PNRoutedUICommand("Load Note", "cmdLoadNotes", typeof(PNCommands))
     {
         Type = CommandType.LoadNote
     };
     _NoteFromClipboard = new PNRoutedUICommand("New Note From Clipboard", "cmdNoteFromCB", typeof(PNCommands))
     {
         Type = CommandType.NoteFromClipboard
     };
     _DuplicateNote = new PNRoutedUICommand("Duplicate Note", "cmdDuplicate", typeof(PNCommands))
     {
         Type = CommandType.DuplicateNote
     };
     _SaveAsShortcut = new PNRoutedUICommand("Save As Desktop Shortcut", "mnuSaveAsShortcut", typeof(PNCommands))
     {
         Section = "note_menu",
         Type = CommandType.SaveAsShortcut
     };
     _Diary = new PNRoutedUICommand("Diary", "cmdDiary", typeof(PNCommands)) { Type = CommandType.Diary };
     _Today = new PNRoutedUICommand("Today", "mnuTodayDiary", typeof(PNCommands))
     {
         Section = "main_menu",
         Type = CommandType.Today
     };
     _Save = new PNRoutedUICommand("Save", "cmdSave", typeof(PNCommands)) { Type = CommandType.Save };
     _SaveAs = new PNRoutedUICommand("Save As", "cmdSaveAs", typeof(PNCommands)) { Type = CommandType.SaveAs };
     _SaveAsText = new PNRoutedUICommand("Save As Text File", "cmdSaveAsText", typeof(PNCommands))
     {
         Type = CommandType.SaveAsText
     };
     _RestoreFromBackup = new PNRoutedUICommand("Restore From Backup", "cmdRestoreFromBackup",
         typeof(PNCommands)) { Type = CommandType.RestoreFromBackup };
     _Print = new PNRoutedUICommand("Print", "cmdPrint", typeof(PNCommands)) { Type = CommandType.Print };
     _Adjust = new PNRoutedUICommand("Adjust", "cmdAdjust", typeof(PNCommands)) { Type = CommandType.Adjust };
     _AdjustAppearance = new PNRoutedUICommand("Adjust Appearance", "mnuAdjustAppearance", typeof(PNCommands))
     {
         Section = "note_menu",
         Type = CommandType.AdjustAppearance
     };
     _AdjustSchedule = new PNRoutedUICommand("Adjust Schedule", "mnuAdjustSchedule", typeof(PNCommands))
     {
         Section = "note_menu",
         Type = CommandType.AdjustSchedule
     };
     _Delete = new PNRoutedUICommand("Delete Note", "cmdDelete", typeof(PNCommands)) { Type = CommandType.Delete };
     _SaveAll = new PNRoutedUICommand("Save All", "cmdSaveAll", typeof(PNCommands)) { Type = CommandType.SaveAll };
     _BackupSync = new PNRoutedUICommand("Backup/Synchronization", "cmdBackup", typeof(PNCommands))
     {
         Type = CommandType.BackupSync
     };
     _BackupCreate = new PNRoutedUICommand("Create Full Backup", "mnuBackupCreate", typeof(PNCommands))
     {
         Section = "main_menu",
         Type = CommandType.BackupCreate
     };
     _BackupRestore = new PNRoutedUICommand("Restore From Full Backup", "mnuBackupRestore", typeof(PNCommands))
     {
         Section = "main_menu",
         Type = CommandType.BackupRestore
     };
     _SyncLocal = new PNRoutedUICommand("Manual Local Synchronization", "mnuSyncLocal", typeof(PNCommands))
     {
         Section = "main_menu",
         Type = CommandType.SyncLocal
     };
     _ImportNotes = new PNRoutedUICommand("Import Notes From PNotes", "mnuImportNotes", typeof(PNCommands))
     {
         Section = "main_menu",
         Type = CommandType.ImportNotes
     };
     _ImportSettings = new PNRoutedUICommand("Import Settings From PNotes", "mnuImportSettings", typeof(PNCommands))
     {
         Section = "main_menu",
         Type = CommandType.ImportSettings
     };
     _ImportFonts = new PNRoutedUICommand("Import Fonts From PNotes", "mnuImportFonts", typeof(PNCommands))
     {
         Section = "main_menu",
         Type = CommandType.ImportFonts
     };
     _ImportDictionaries = new PNRoutedUICommand("Import Dictionaries From PNotes", "mnuImportDictionaries", typeof(PNCommands))
     {
         Section = "main_menu",
         Type = CommandType.ImportDictionaries
     };
     _Placement = new PNRoutedUICommand("Placement/Visibility", "cmdPlacement", typeof(PNCommands))
     {
         Type = CommandType.Placement
     };
     _DockAll = new PNRoutedUICommand("Docking (All Notes)", "mnuDockAll", typeof(PNCommands))
     {
         Section = "main_menu",
         Type = CommandType.DockAll
     };
     _DockAllNone = new PNRoutedUICommand("None", "mnuDAllNone", typeof(PNCommands))
     {
         Section = "main_menu",
         Type = CommandType.DockAllNone
     };
     _DockAllLeft = new PNRoutedUICommand("Left", "mnuDAllLeft", typeof(PNCommands))
     {
         Section = "main_menu",
         Type = CommandType.DockAllLeft
     };
     _DockAllTop = new PNRoutedUICommand("Top", "mnuDAllTop", typeof(PNCommands))
     {
         Section = "main_menu",
         Type = CommandType.DockAllTop
     };
     _DockAllRight = new PNRoutedUICommand("Right", "mnuDAllRight", typeof(PNCommands))
     {
         Section = "main_menu",
         Type = CommandType.DockAllRight
     };
     _DockAllBottom = new PNRoutedUICommand("Bottom", "mnuDAllBottom", typeof(PNCommands))
     {
         Section = "main_menu",
         Type = CommandType.DockAllBottom
     };
     _Visibility = new PNRoutedUICommand("Visibility", "mnuVisibility", typeof(PNCommands))
     {
         Section = "main_menu",
         Type = CommandType.Visibility
     };
     _ShowNote = new PNRoutedUICommand("Show", "mnuShowNote", typeof(PNCommands))
     {
         Section = "main_menu",
         Type = CommandType.ShowNote
     };
     _ShowAll = new PNRoutedUICommand("Show All", "mnuShowAll", typeof(PNCommands))
     {
         Section = "main_menu",
         Type = CommandType.ShowAll
     };
     _HideNote = new PNRoutedUICommand("Hide", "mnuHideNote", typeof(PNCommands))
     {
         Section = "main_menu",
         Type = CommandType.HideNote
     };
     _HideAll = new PNRoutedUICommand("Hide All", "mnuHideAll", typeof(PNCommands))
     {
         Section = "main_menu",
         Type = CommandType.HideAll
     };
     _AllToFront = new PNRoutedUICommand("Bring All To Front", "mnuAllToFront", typeof(PNCommands))
     {
         Section = "main_menu",
         Type = CommandType.AllToFront
     };
     _Centralize = new PNRoutedUICommand("Centralize", "mnuCentralize", typeof(PNCommands))
     {
         Section = "main_menu",
         Type = CommandType.Centralize
     };
     _SendAsText = new PNRoutedUICommand("Send As Text", "cmdSendAsText", typeof(PNCommands))
     {
         Type = CommandType.SendAsText
     };
     _SendAsAttachment = new PNRoutedUICommand("Send As Attachment", "cmdSendAsAttachment", typeof(PNCommands))
     {
         Type = CommandType.SendAsAttachment
     };
     _SendAsZip = new PNRoutedUICommand("Send In ZIP Archive", "cmdSendZip", typeof(PNCommands))
     {
         Type = CommandType.SendAsZip
     };
     _SendNetwork = new PNRoutedUICommand("Send Via Network", "cmdSendNetwork", typeof(PNCommands))
     {
         Type = CommandType.SendNetwork
     };
     _ContactAdd = new PNRoutedUICommand("Add Contact", "mnuAddContact", typeof(PNCommands))
     {
         Section = "note_menu",
         Type = CommandType.ContactAdd
     };
     _ContactGroupAdd = new PNRoutedUICommand("Add Group Of Contacts", "mnuAddGroup", typeof(PNCommands))
     {
         Section = "note_menu",
         Type = CommandType.ContactGroupAdd
     };
     _ContactSelect = new PNRoutedUICommand("Select Contacts", "mnuSelectContact", typeof(PNCommands))
     {
         Section = "note_menu",
         Type = CommandType.ContactSelect
     };
     _ContactGroupSelect = new PNRoutedUICommand("Select Groups Of Contacts", "mnuSelectGroup", typeof(PNCommands))
     {
         Section = "note_menu",
         Type = CommandType.ContactGroupSelect
     };
     _Tags = new PNRoutedUICommand("Tags", "cmdTags", typeof(PNCommands))
     {
         Type = CommandType.Tags
     };
     _TagsCurrent = new PNRoutedUICommand("Tags (current note)", "mnuTagsCurrent", typeof(PNCommands))
     {
         Section = "main_menu",
         Type = CommandType.TagsCurrent
     };
     _TagsShowBy = new PNRoutedUICommand("Show By Tag", "mnuShowByTag", typeof(PNCommands))
     {
         Section = "main_menu",
         Type = CommandType.TagsShowBy
     };
     _TagsHideBy = new PNRoutedUICommand("Hide By Tag", "mnuHideByTag", typeof(PNCommands))
     {
         Section = "main_menu",
         Type = CommandType.TagsHideBy
     };
     _Switches = new PNRoutedUICommand("Switches", "cmdSwitches", typeof(PNCommands))
     {
         Type = CommandType.Switches
     };
     _OnTop = new PNRoutedUICommand("On Top", "mnuOnTop", typeof(PNCommands))
     {
         Section = "note_menu",
         Type = CommandType.OnTop
     };
     _HighPriority = new PNRoutedUICommand("Toggle High Priority", "mnuToggleHighPriority", typeof(PNCommands))
     {
         Section = "note_menu",
         Type = CommandType.HighPriority
     };
     _ProtectionMode = new PNRoutedUICommand("Toggle Protection Mode", "mnuToggleProtectionMode", typeof(PNCommands))
     {
         Section = "note_menu",
         Type = CommandType.ProtectionMode
     };
     _SetNotePassword = new PNRoutedUICommand("Set Note Password", "mnuSetPassword", typeof(PNCommands))
     {
         Section = "note_menu",
         Type = CommandType.SetNotePassword
     };
     _RemoveNotePassword = new PNRoutedUICommand("Remove Note Password", "mnuRemovePassword", typeof(PNCommands))
     {
         Section = "note_menu",
         Type = CommandType.RemoveNotePassword
     };
     _MarkAsComplete = new PNRoutedUICommand("Mark As Complete", "mnuMarkAsComplete", typeof(PNCommands))
     {
         Section = "note_menu",
         Type = CommandType.MarkAsComplete
     };
     _RollUnroll = new PNRoutedUICommand("Roll/Unroll", "mnuRollUnroll", typeof(PNCommands))
     {
         Section = "note_menu",
         Type = CommandType.RollUnroll
     };
     _Pin = new PNRoutedUICommand("Pin To Window", "mnuPin", typeof(PNCommands))
     {
         Section = "note_menu",
         Type = CommandType.Pin
     };
     _Unpin = new PNRoutedUICommand("Unpin", "mnuUnpin", typeof(PNCommands))
     {
         Section = "note_menu",
         Type = CommandType.Unpin
     };
     _Scramble = new PNRoutedUICommand("Encrypt text", "mnuScramble", typeof(PNCommands))
     {
         Section = "note_menu",
         Type = CommandType.Scramble
     };
     _Unscramble = new PNRoutedUICommand("Decrypt text", "mnuUnscramble", typeof(PNCommands))
     {
         Section = "note_menu",
         Type = CommandType.Unscramble
     };
     _AddFavorites = new PNRoutedUICommand("Add To Favorites", "cmdFavorites", typeof(PNCommands))
     {
         Type = CommandType.AddFavorites
     };
     _RemoveFavorites = new PNRoutedUICommand("Remove From Favorites", "cmdRemoveFromFavorites", typeof(PNCommands))
     {
         Type = CommandType.RemoveFavorites
     };
     _Run = new PNRoutedUICommand("Run", "cmdRun", typeof(PNCommands))
     {
         Type = CommandType.Run
     };
     _EmptyBin = new PNRoutedUICommand("Empty Recycle Bin", "cmdEmptyBin", typeof(PNCommands))
     {
         Type = CommandType.EmptyBin
     };
     _RestoreNote = new PNRoutedUICommand("Restore Note", "cmdRestoreNote", typeof(PNCommands))
     {
         Type = CommandType.RestoreNote
     };
     _Preview = new PNRoutedUICommand("Preview", "cmdPreview", typeof(PNCommands))
     {
         Type = CommandType.Preview
     };
     _PreviewFromMenu = new PNRoutedUICommand("Preview", "cmdPreview", typeof(PNCommands))
     {
         Type = CommandType.PreviewFromMenu
     };
     _PreviewSettings = new PNRoutedUICommand("Preview Window Background Settings", "cmdPreviewSettings", typeof(PNCommands))
     {
         Type = CommandType.PreviewSettings
     };
     _UseCustColor = new PNRoutedUICommand("Use Custom Color", "mnuUseCustColor", typeof(PNCommands))
     {
         Section = "cp_menu",
         Type = CommandType.UseCustColor
     };
     _ChooseCustColor = new PNRoutedUICommand("Choose Custom Color", "mnuChooseCustColor", typeof(PNCommands))
     {
         Section = "cp_menu",
         Type = CommandType.ChooseCustColor
     };
     _PreviewRight = new PNRoutedUICommand("Preview Window On The Right", "cmdPreviewRight", typeof(PNCommands))
     {
         Type = CommandType.PreviewRight
     };
     _PreviewRightFromMenu = new PNRoutedUICommand("Preview Window On The Right", "cmdPreviewRight", typeof(PNCommands))
     {
         Type = CommandType.PreviewRightFromMenu
     };
     _ShowGroups = new PNRoutedUICommand("Show Groups", "cmdShowGroups", typeof(PNCommands))
     {
         Type = CommandType.ShowGroups
     };
     _ShowGroupsFromMenu = new PNRoutedUICommand("Show Groups", "cmdShowGroups", typeof(PNCommands))
     {
         Type = CommandType.ShowGroupsFromMenu
     };
     _ColReset = new PNRoutedUICommand("Reset Columns Width/Visibility", "cmdColReset", typeof(PNCommands))
     {
         Type = CommandType.ColReset
     };
     _HotkeysCP = new PNRoutedUICommand("Hot Keys Management", "cmdHotkeysCP", typeof(PNCommands))
     {
         Type = CommandType.HotkeysCP
     };
     _MenusManagementCP = new PNRoutedUICommand("Menus Management", "cmdMenusManagementCP", typeof(PNCommands))
     {
         Type = CommandType.MenusManagementCP
     };
     _Preferences = new PNRoutedUICommand("Preferences", "cmdPreferences", typeof(PNCommands))
     {
         Type = CommandType.Preferences
     };
     _Password = new PNRoutedUICommand("Password", "cmdPassword", typeof(PNCommands))
     {
         Type = CommandType.Password
     };
     _Search = new PNRoutedUICommand("Search", "cmdSearch", typeof(PNCommands))
     {
         Type = CommandType.Search
     };
     _QuickSearch = new PNRoutedUICommand("Quick Search", "cmdQuickSearch", typeof(PNCommands))
     {
         Type = CommandType.QuickSearch
     };
     _Help = new PNRoutedUICommand("Help", "cmdHelp", typeof(PNCommands))
     {
         Type = CommandType.Help
     };
     _Support = new PNRoutedUICommand("Support PNotes.NET Project", "cmdSupport", typeof(PNCommands))
     {
         Type = CommandType.Support
     };
     _About = new PNRoutedUICommand("About", "mnuAbout", typeof(PNCommands))
     {
         Section = "main_menu",
         Type = CommandType.About
     };
     _PwrdCreate = new PNRoutedUICommand("Create Password", "mnuPwrdCreate", typeof(PNCommands))
     {
         Section = "cp_menu",
         Type = CommandType.PwrdCreate
     };
     _PwrdChange = new PNRoutedUICommand("Change Password", "mnuPwrdChange", typeof(PNCommands))
     {
         Section = "cp_menu",
         Type = CommandType.PwrdChange
     };
     _PwrdRemove = new PNRoutedUICommand("Remove Password", "mnuPwrdRemove", typeof(PNCommands))
     {
         Section = "cp_menu",
         Type = CommandType.PwrdRemove
     };
     _SearchInNotes = new PNRoutedUICommand("Search In Notes", "mnuSearchInNotes", typeof(PNCommands))
     {
         Section = "main_menu",
         Type = CommandType.SearchInNotes
     };
     _SearchByTags = new PNRoutedUICommand("Search By Tags", "mnuSearchByTags", typeof(PNCommands))
     {
         Section = "main_menu",
         Type = CommandType.SearchByTags
     };
     _SearchByDates = new PNRoutedUICommand("Search By Dates", "mnuSearchByDates", typeof(PNCommands))
     {
         Section = "main_menu",
         Type = CommandType.SearchByDates
     };
     _IncBinInQSearch = new PNRoutedUICommand("Include Notes From Recycle Bin in 'Quick Search'", "mnuIncBinInQSearch", typeof(PNCommands))
     {
         Section = "main_menu",
         Type = CommandType.IncBinInQSearch
     };
     _ClearQSearch = new PNRoutedUICommand("Clear 'Quick Search'", "mnuClearQSearch", typeof(PNCommands))
     {
         Section = "main_menu",
         Type = CommandType.ClearQSearch
     };
     _GroupAdd = new PNRoutedUICommand("Add top level group", "cmdAddTopGroup", typeof(PNCommands))
     {
         Type = CommandType.GroupAdd
     };
     _GroupAddSubgroup = new PNRoutedUICommand("Add subgroup to selected group", "cmdAddSubgroup",
         typeof(PNCommands)) { Type = CommandType.GroupAddSubgroup };
     _GroupEdit = new PNRoutedUICommand("Edit group", "cmdEditGroup", typeof(PNCommands))
     {
         Type = CommandType.GroupEdit
     };
     _GroupRemove = new PNRoutedUICommand("Delete group", "cmdRemoveGroup", typeof(PNCommands))
     {
         Type = CommandType.GroupRemove
     };
     _GroupShow = new PNRoutedUICommand("Show all notes from selected group", "cmdShowAllFromGroup",
         typeof(PNCommands)) { Type = CommandType.GroupShow };
     _GroupShowAll = new PNRoutedUICommand("Show group (include subgroups)", "cmdShowAllIncSubgroups",
         typeof(PNCommands)) { Type = CommandType.GroupShowAll };
     _GroupHide = new PNRoutedUICommand("Hide all notes from selected group", "cmdHideAllFromGroup",
         typeof(PNCommands)) { Type = CommandType.GroupHide };
     _GroupHideAll = new PNRoutedUICommand("Hide group (include subgroups)", "cmdHideAllIncSubgroups",
         typeof(PNCommands)) { Type = CommandType.GroupHideAll };
     _GroupPassAdd = new PNRoutedUICommand("Set group password", "cmdSetGroupPassword", typeof(PNCommands))
     {
         Type = CommandType.GroupPassAdd
     };
     _GroupPassRemove = new PNRoutedUICommand("Remove group password", "cmdRemoveGroupPassword",
         typeof(PNCommands)) { Type = CommandType.GroupPassRemove };
 }