Ejemplo n.º 1
0
 internal static void ApplyNoteSkin(WndNote dlg, PNote note, bool fromLoad = false)
 {
     try
     {
         PNSkinDetails skn = GetSkin(dlg, note);
         if (skn != null && skn.BitmapSkin != null)
         {
             if (dlg.Equals(note.Dialog))
             {
                 dlg.Hide();
             }
             dlg.SetRuntimeSkin(skn.PNClone(), fromLoad);
             if (dlg.Equals(note.Dialog))
             {
                 dlg.Show();
             }
         }
     }
     catch (Exception ex)
     {
         PNStatic.LogException(ex);
     }
 }
Ejemplo n.º 2
0
 internal static PNSkinDetails GetSkin(WndNote dlg, PNote note)
 {
     try
     {
         PNSkinDetails skn;
         if (note.Skin != null)
         {
             skn = note.Skin;
         }
         else
         {
             PNGroup gr = PNStatic.Groups.GetGroupByID(note.GroupID);
             if (gr.Skin == null || gr.Skin.SkinName == PNSkinDetails.NO_SKIN)
             //if (gr.ID != (int)SpecialGroups.Docking && gr.ID != (int)SpecialGroups.Diary)
             {
                 // get General png skin
                 gr = PNStatic.Groups.GetGroupByID(0);
             }
             skn = gr.Skin;
         }
         return skn;
     }
     catch (Exception ex)
     {
         PNStatic.LogException(ex);
         return null;
     }
 }
Ejemplo n.º 3
0
 internal static void ChangeNoteLookOnGroupChange(WndNote wnd, PNGroup group)
 {
     try
     {
         if (!PNStatic.Settings.GeneralSettings.UseSkins)
         {
             wnd.Background =
                 new SolidColorBrush(group.Skinless.BackColor);
             wnd.PHeader.SetPNFont(group.Skinless.CaptionFont);
             wnd.Foreground =
                 new SolidColorBrush(group.Skinless.CaptionColor);
         }
         else
         {
             var note = PNStatic.Notes.Note(wnd.Handle);
             if (note != null && note.Skin == null)
             {
                 PNSkinsOperations.ApplyNoteSkin(wnd, note);
             }
         }
     }
     catch (Exception ex)
     {
         PNStatic.LogException(ex);
     }
 }
Ejemplo n.º 4
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.DlgNote = ((PNotes.NET.WndNote)(target));
     
     #line 17 "..\..\WndNote.xaml"
     this.DlgNote.SourceInitialized += new System.EventHandler(this.Window_SourceInitialized);
     
     #line default
     #line hidden
     
     #line 18 "..\..\WndNote.xaml"
     this.DlgNote.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.Window_MouseDown);
     
     #line default
     #line hidden
     
     #line 19 "..\..\WndNote.xaml"
     this.DlgNote.Activated += new System.EventHandler(this.Window_Activated);
     
     #line default
     #line hidden
     
     #line 20 "..\..\WndNote.xaml"
     this.DlgNote.Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);
     
     #line default
     #line hidden
     
     #line 21 "..\..\WndNote.xaml"
     this.DlgNote.Closed += new System.EventHandler(this.Window_Closed);
     
     #line default
     #line hidden
     
     #line 22 "..\..\WndNote.xaml"
     this.DlgNote.Closing += new System.ComponentModel.CancelEventHandler(this.Window_Closing);
     
     #line default
     #line hidden
     
     #line 23 "..\..\WndNote.xaml"
     this.DlgNote.MouseEnter += new System.Windows.Input.MouseEventHandler(this.Window_MouseEnter);
     
     #line default
     #line hidden
     
     #line 24 "..\..\WndNote.xaml"
     this.DlgNote.MouseLeave += new System.Windows.Input.MouseEventHandler(this.Window_MouseLeave);
     
     #line default
     #line hidden
     
     #line 25 "..\..\WndNote.xaml"
     this.DlgNote.PreviewMouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.Window_PreviewMouseDoubleClick);
     
     #line default
     #line hidden
     return;
     case 2:
     this.ctmNote = ((System.Windows.Controls.ContextMenu)(target));
     
     #line 35 "..\..\WndNote.xaml"
     this.ctmNote.Opened += new System.Windows.RoutedEventHandler(this.ctmNote_Opened);
     
     #line default
     #line hidden
     return;
     case 3:
     this.mnuSave = ((System.Windows.Controls.MenuItem)(target));
     
     #line 36 "..\..\WndNote.xaml"
     this.mnuSave.Click += new System.Windows.RoutedEventHandler(this.mnuSave_Click);
     
     #line default
     #line hidden
     return;
     case 4:
     this.mnuRename = ((System.Windows.Controls.MenuItem)(target));
     
     #line 41 "..\..\WndNote.xaml"
     this.mnuRename.Click += new System.Windows.RoutedEventHandler(this.mnuRename_Click);
     
     #line default
     #line hidden
     return;
     case 5:
     this.mnuSaveAsText = ((System.Windows.Controls.MenuItem)(target));
     
     #line 46 "..\..\WndNote.xaml"
     this.mnuSaveAsText.Click += new System.Windows.RoutedEventHandler(this.mnuSaveAsText_Click);
     
     #line default
     #line hidden
     return;
     case 6:
     this.mnuRestoreFromBackup = ((System.Windows.Controls.MenuItem)(target));
     
     #line 51 "..\..\WndNote.xaml"
     this.mnuRestoreFromBackup.Click += new System.Windows.RoutedEventHandler(this.mnuRestoreFromBackup_Click);
     
     #line default
     #line hidden
     return;
     case 7:
     this.mnuDuplicateNote = ((System.Windows.Controls.MenuItem)(target));
     
     #line 56 "..\..\WndNote.xaml"
     this.mnuDuplicateNote.Click += new System.Windows.RoutedEventHandler(this.mnuDuplicateNote_Click);
     
     #line default
     #line hidden
     return;
     case 8:
     this.mnuSaveAsShortcut = ((System.Windows.Controls.MenuItem)(target));
     
     #line 61 "..\..\WndNote.xaml"
     this.mnuSaveAsShortcut.Click += new System.Windows.RoutedEventHandler(this.mnuSaveAsShortcut_Click);
     
     #line default
     #line hidden
     return;
     case 9:
     this.toolStripSeparator1 = ((System.Windows.Controls.Separator)(target));
     return;
     case 10:
     this.mnuPrint = ((System.Windows.Controls.MenuItem)(target));
     
     #line 67 "..\..\WndNote.xaml"
     this.mnuPrint.Click += new System.Windows.RoutedEventHandler(this.mnuPrint_Click);
     
     #line default
     #line hidden
     return;
     case 11:
     this.toolStripSeparator2 = ((System.Windows.Controls.Separator)(target));
     return;
     case 12:
     this.mnuAdjustAppearance = ((System.Windows.Controls.MenuItem)(target));
     
     #line 73 "..\..\WndNote.xaml"
     this.mnuAdjustAppearance.Click += new System.Windows.RoutedEventHandler(this.mnuAdjustAppearance_Click);
     
     #line default
     #line hidden
     return;
     case 13:
     this.mnuAdjustSchedule = ((System.Windows.Controls.MenuItem)(target));
     
     #line 78 "..\..\WndNote.xaml"
     this.mnuAdjustSchedule.Click += new System.Windows.RoutedEventHandler(this.mnuAdjustSchedule_Click);
     
     #line default
     #line hidden
     return;
     case 14:
     this.toolStripSeparator3 = ((System.Windows.Controls.Separator)(target));
     return;
     case 15:
     this.mnuHideNote = ((System.Windows.Controls.MenuItem)(target));
     
     #line 84 "..\..\WndNote.xaml"
     this.mnuHideNote.Click += new System.Windows.RoutedEventHandler(this.mnuHideNote_Click);
     
     #line default
     #line hidden
     return;
     case 16:
     this.mnuDeleteNote = ((System.Windows.Controls.MenuItem)(target));
     
     #line 89 "..\..\WndNote.xaml"
     this.mnuDeleteNote.Click += new System.Windows.RoutedEventHandler(this.mnuDeleteNote_Click);
     
     #line default
     #line hidden
     return;
     case 17:
     this.mnuPanel = ((System.Windows.Controls.MenuItem)(target));
     
     #line 94 "..\..\WndNote.xaml"
     this.mnuPanel.Click += new System.Windows.RoutedEventHandler(this.mnuPanel_Click);
     
     #line default
     #line hidden
     return;
     case 18:
     this.toolStripSeparator4 = ((System.Windows.Controls.Separator)(target));
     return;
     case 19:
     this.mnuDock = ((System.Windows.Controls.MenuItem)(target));
     return;
     case 20:
     this.mnuDockNone = ((System.Windows.Controls.MenuItem)(target));
     
     #line 104 "..\..\WndNote.xaml"
     this.mnuDockNone.Click += new System.Windows.RoutedEventHandler(this.mnuDockNone_Click);
     
     #line default
     #line hidden
     return;
     case 21:
     this.mnuDockLeft = ((System.Windows.Controls.MenuItem)(target));
     
     #line 105 "..\..\WndNote.xaml"
     this.mnuDockLeft.Click += new System.Windows.RoutedEventHandler(this.mnuDockLeft_Click);
     
     #line default
     #line hidden
     return;
     case 22:
     this.mnuDockTop = ((System.Windows.Controls.MenuItem)(target));
     
     #line 110 "..\..\WndNote.xaml"
     this.mnuDockTop.Click += new System.Windows.RoutedEventHandler(this.mnuDockTop_Click);
     
     #line default
     #line hidden
     return;
     case 23:
     this.mnuDockRight = ((System.Windows.Controls.MenuItem)(target));
     
     #line 115 "..\..\WndNote.xaml"
     this.mnuDockRight.Click += new System.Windows.RoutedEventHandler(this.mnuDockRight_Click);
     
     #line default
     #line hidden
     return;
     case 24:
     this.mnuDockBottom = ((System.Windows.Controls.MenuItem)(target));
     
     #line 120 "..\..\WndNote.xaml"
     this.mnuDockBottom.Click += new System.Windows.RoutedEventHandler(this.mnuDockBottom_Click);
     
     #line default
     #line hidden
     return;
     case 25:
     this.toolStripSeparator5 = ((System.Windows.Controls.Separator)(target));
     return;
     case 26:
     this.mnuSendAsText = ((System.Windows.Controls.MenuItem)(target));
     
     #line 127 "..\..\WndNote.xaml"
     this.mnuSendAsText.Click += new System.Windows.RoutedEventHandler(this.mnuSendAsText_Click);
     
     #line default
     #line hidden
     return;
     case 27:
     this.mnuSendAsAttachment = ((System.Windows.Controls.MenuItem)(target));
     
     #line 132 "..\..\WndNote.xaml"
     this.mnuSendAsAttachment.Click += new System.Windows.RoutedEventHandler(this.mnuSendAsAttachment_Click);
     
     #line default
     #line hidden
     return;
     case 28:
     this.mnuSendZip = ((System.Windows.Controls.MenuItem)(target));
     
     #line 137 "..\..\WndNote.xaml"
     this.mnuSendZip.Click += new System.Windows.RoutedEventHandler(this.mnuSendZip_Click);
     
     #line default
     #line hidden
     return;
     case 29:
     this.mnuSendNetwork = ((System.Windows.Controls.MenuItem)(target));
     return;
     case 30:
     this.mnuAddContact = ((System.Windows.Controls.MenuItem)(target));
     
     #line 146 "..\..\WndNote.xaml"
     this.mnuAddContact.Click += new System.Windows.RoutedEventHandler(this.mnuAddContact_Click);
     
     #line default
     #line hidden
     return;
     case 31:
     this.mnuAddGroup = ((System.Windows.Controls.MenuItem)(target));
     
     #line 151 "..\..\WndNote.xaml"
     this.mnuAddGroup.Click += new System.Windows.RoutedEventHandler(this.mnuAddGroup_Click);
     
     #line default
     #line hidden
     return;
     case 32:
     this.toolStripMenuItem50 = ((System.Windows.Controls.Separator)(target));
     return;
     case 33:
     this.mnuSelectContact = ((System.Windows.Controls.MenuItem)(target));
     
     #line 157 "..\..\WndNote.xaml"
     this.mnuSelectContact.Click += new System.Windows.RoutedEventHandler(this.mnuSelectContact_Click);
     
     #line default
     #line hidden
     return;
     case 34:
     this.mnuSelectGroup = ((System.Windows.Controls.MenuItem)(target));
     
     #line 162 "..\..\WndNote.xaml"
     this.mnuSelectGroup.Click += new System.Windows.RoutedEventHandler(this.mnuSelectGroup_Click);
     
     #line default
     #line hidden
     return;
     case 35:
     this.mnuReply = ((System.Windows.Controls.MenuItem)(target));
     
     #line 168 "..\..\WndNote.xaml"
     this.mnuReply.Click += new System.Windows.RoutedEventHandler(this.mnuReply_Click);
     
     #line default
     #line hidden
     return;
     case 36:
     this.toolStripSeparator14 = ((System.Windows.Controls.Separator)(target));
     return;
     case 37:
     this.mnuPostNote = ((System.Windows.Controls.MenuItem)(target));
     return;
     case 38:
     this.mnuReplacePost = ((System.Windows.Controls.MenuItem)(target));
     return;
     case 39:
     this.toolStripSeparator13 = ((System.Windows.Controls.Separator)(target));
     return;
     case 40:
     this.mnuExportToOffice = ((System.Windows.Controls.MenuItem)(target));
     return;
     case 41:
     this.mnuExportOutlookNote = ((System.Windows.Controls.MenuItem)(target));
     
     #line 189 "..\..\WndNote.xaml"
     this.mnuExportOutlookNote.Click += new System.Windows.RoutedEventHandler(this.mnuExportOutlookNote_Click);
     
     #line default
     #line hidden
     return;
     case 42:
     this.toolStripSeparator6 = ((System.Windows.Controls.Separator)(target));
     return;
     case 43:
     this.mnuTags = ((System.Windows.Controls.MenuItem)(target));
     
     #line 196 "..\..\WndNote.xaml"
     this.mnuTags.Click += new System.Windows.RoutedEventHandler(this.mnuTags_Click);
     
     #line default
     #line hidden
     return;
     case 44:
     this.toolStripSeparator10 = ((System.Windows.Controls.Separator)(target));
     return;
     case 45:
     this.mnuLinked = ((System.Windows.Controls.MenuItem)(target));
     return;
     case 46:
     this.mnuManageLinks = ((System.Windows.Controls.MenuItem)(target));
     
     #line 206 "..\..\WndNote.xaml"
     this.mnuManageLinks.Click += new System.Windows.RoutedEventHandler(this.mnuManageLinks_Click);
     
     #line default
     #line hidden
     return;
     case 47:
     this.toolStripSeparator11 = ((System.Windows.Controls.Separator)(target));
     return;
     case 48:
     this.mnuAddToFavorites = ((System.Windows.Controls.MenuItem)(target));
     
     #line 209 "..\..\WndNote.xaml"
     this.mnuAddToFavorites.Click += new System.Windows.RoutedEventHandler(this.mnuAddToFavorites_Click);
     
     #line default
     #line hidden
     return;
     case 49:
     this.mnuRemoveFromFavorites = ((System.Windows.Controls.MenuItem)(target));
     
     #line 214 "..\..\WndNote.xaml"
     this.mnuRemoveFromFavorites.Click += new System.Windows.RoutedEventHandler(this.mnuRemoveFromFavorites_Click);
     
     #line default
     #line hidden
     return;
     case 50:
     this.toolStripSeparator8 = ((System.Windows.Controls.Separator)(target));
     return;
     case 51:
     this.mnuOnTop = ((System.Windows.Controls.MenuItem)(target));
     
     #line 220 "..\..\WndNote.xaml"
     this.mnuOnTop.Click += new System.Windows.RoutedEventHandler(this.mnuOnTop_Click);
     
     #line default
     #line hidden
     return;
     case 52:
     this.mnuToggleHighPriority = ((System.Windows.Controls.MenuItem)(target));
     
     #line 221 "..\..\WndNote.xaml"
     this.mnuToggleHighPriority.Click += new System.Windows.RoutedEventHandler(this.mnuToggleHighPriority_Click);
     
     #line default
     #line hidden
     return;
     case 53:
     this.mnuToggleProtectionMode = ((System.Windows.Controls.MenuItem)(target));
     
     #line 222 "..\..\WndNote.xaml"
     this.mnuToggleProtectionMode.Click += new System.Windows.RoutedEventHandler(this.mnuToggleProtectionMode_Click);
     
     #line default
     #line hidden
     return;
     case 54:
     this.mnuSetPassword = ((System.Windows.Controls.MenuItem)(target));
     
     #line 223 "..\..\WndNote.xaml"
     this.mnuSetPassword.Click += new System.Windows.RoutedEventHandler(this.mnuSetPassword_Click);
     
     #line default
     #line hidden
     return;
     case 55:
     this.mnuRemovePassword = ((System.Windows.Controls.MenuItem)(target));
     
     #line 228 "..\..\WndNote.xaml"
     this.mnuRemovePassword.Click += new System.Windows.RoutedEventHandler(this.mnuRemovePassword_Click);
     
     #line default
     #line hidden
     return;
     case 56:
     this.mnuMarkAsComplete = ((System.Windows.Controls.MenuItem)(target));
     
     #line 233 "..\..\WndNote.xaml"
     this.mnuMarkAsComplete.Click += new System.Windows.RoutedEventHandler(this.mnuMarkAsComplete_Click);
     
     #line default
     #line hidden
     return;
     case 57:
     this.mnuRollUnroll = ((System.Windows.Controls.MenuItem)(target));
     
     #line 234 "..\..\WndNote.xaml"
     this.mnuRollUnroll.Click += new System.Windows.RoutedEventHandler(this.mnuRollUnroll_Click);
     
     #line default
     #line hidden
     return;
     case 58:
     this.mnuPin = ((System.Windows.Controls.MenuItem)(target));
     
     #line 239 "..\..\WndNote.xaml"
     this.mnuPin.Click += new System.Windows.RoutedEventHandler(this.mnuPin_Click);
     
     #line default
     #line hidden
     return;
     case 59:
     this.mnuUnpin = ((System.Windows.Controls.MenuItem)(target));
     
     #line 244 "..\..\WndNote.xaml"
     this.mnuUnpin.Click += new System.Windows.RoutedEventHandler(this.mnuUnpin_Click);
     
     #line default
     #line hidden
     return;
     case 60:
     this.mnuScramble = ((System.Windows.Controls.MenuItem)(target));
     
     #line 249 "..\..\WndNote.xaml"
     this.mnuScramble.Click += new System.Windows.RoutedEventHandler(this.mnuScramble_Click);
     
     #line default
     #line hidden
     return;
     case 61:
     
     #line 253 "..\..\WndNote.xaml"
     ((System.Windows.Media.Animation.Storyboard)(target)).Completed += new System.EventHandler(this.StoryboardClose_Completed);
     
     #line default
     #line hidden
     return;
     case 62:
     
     #line 257 "..\..\WndNote.xaml"
     ((System.Windows.Media.Animation.DoubleAnimation)(target)).Completed += new System.EventHandler(this.LeftAnimationThumbnail_Completed);
     
     #line default
     #line hidden
     return;
     case 63:
     
     #line 262 "..\..\WndNote.xaml"
     ((System.Windows.Media.Animation.DoubleAnimation)(target)).Completed += new System.EventHandler(this.TopAnimationThumbnail_Completed);
     
     #line default
     #line hidden
     return;
     case 64:
     this.cnvSkin = ((System.Windows.Controls.Canvas)(target));
     return;
     case 65:
     this.SkinImage = ((System.Windows.Controls.Image)(target));
     return;
     case 66:
     this.SkinnableHeader = ((PNotes.NET.SkinnableHeader)(target));
     return;
     case 67:
     this.SkinnableFooter = ((PNotes.NET.SkinnableFooter)(target));
     return;
     case 68:
     this.SkinnableToolbar = ((PNotes.NET.SkinnableToolbar)(target));
     return;
     case 69:
     this.EditTargetSkinnable = ((System.Windows.Controls.Border)(target));
     return;
     case 70:
     this.pnlkSkinless = ((System.Windows.Controls.DockPanel)(target));
     return;
     case 71:
     this.SkinlessHeader = ((PNotes.NET.SkinlessHeader)(target));
     return;
     case 72:
     this.SkinlessFooter = ((PNotes.NET.SkinlessFooter)(target));
     return;
     case 73:
     this.SkinlessToolbar = ((PNotes.NET.SkinlessToolbar)(target));
     return;
     case 74:
     this.ctmEdit = ((System.Windows.Controls.ContextMenu)(target));
     
     #line 309 "..\..\WndNote.xaml"
     this.ctmEdit.Opened += new System.Windows.RoutedEventHandler(this.ctmEdit_Opened);
     
     #line default
     #line hidden
     return;
     case 75:
     this.mnuUndo = ((System.Windows.Controls.MenuItem)(target));
     
     #line 310 "..\..\WndNote.xaml"
     this.mnuUndo.Click += new System.Windows.RoutedEventHandler(this.mnuUndo_Click);
     
     #line default
     #line hidden
     return;
     case 76:
     this.mnuRedo = ((System.Windows.Controls.MenuItem)(target));
     
     #line 315 "..\..\WndNote.xaml"
     this.mnuRedo.Click += new System.Windows.RoutedEventHandler(this.mnuRedo_Click);
     
     #line default
     #line hidden
     return;
     case 77:
     this.toolStripSeparator9 = ((System.Windows.Controls.Separator)(target));
     return;
     case 78:
     this.mnuCut = ((System.Windows.Controls.MenuItem)(target));
     
     #line 321 "..\..\WndNote.xaml"
     this.mnuCut.Click += new System.Windows.RoutedEventHandler(this.mnuCut_Click);
     
     #line default
     #line hidden
     return;
     case 79:
     this.mnuCopy = ((System.Windows.Controls.MenuItem)(target));
     
     #line 326 "..\..\WndNote.xaml"
     this.mnuCopy.Click += new System.Windows.RoutedEventHandler(this.mnuCopy_Click);
     
     #line default
     #line hidden
     return;
     case 80:
     this.mnuPaste = ((System.Windows.Controls.MenuItem)(target));
     
     #line 331 "..\..\WndNote.xaml"
     this.mnuPaste.Click += new System.Windows.RoutedEventHandler(this.mnuPaste_Click);
     
     #line default
     #line hidden
     return;
     case 81:
     this.toolStripMenuItem11 = ((System.Windows.Controls.Separator)(target));
     return;
     case 82:
     this.mnuCopyPlain = ((System.Windows.Controls.MenuItem)(target));
     
     #line 337 "..\..\WndNote.xaml"
     this.mnuCopyPlain.Click += new System.Windows.RoutedEventHandler(this.mnuCopyPlain_Click);
     
     #line default
     #line hidden
     return;
     case 83:
     this.mnuPastePlain = ((System.Windows.Controls.MenuItem)(target));
     
     #line 342 "..\..\WndNote.xaml"
     this.mnuPastePlain.Click += new System.Windows.RoutedEventHandler(this.mnuPastePlain_Click);
     
     #line default
     #line hidden
     return;
     case 84:
     this.toolStripSeparator12 = ((System.Windows.Controls.Separator)(target));
     return;
     case 85:
     this.mnuFormat = ((System.Windows.Controls.MenuItem)(target));
     return;
     case 86:
     this.mnuToUpper = ((System.Windows.Controls.MenuItem)(target));
     
     #line 349 "..\..\WndNote.xaml"
     this.mnuToUpper.Click += new System.Windows.RoutedEventHandler(this.mnuToUpper_Click);
     
     #line default
     #line hidden
     return;
     case 87:
     this.mnuToLower = ((System.Windows.Controls.MenuItem)(target));
     
     #line 354 "..\..\WndNote.xaml"
     this.mnuToLower.Click += new System.Windows.RoutedEventHandler(this.mnuToLower_Click);
     
     #line default
     #line hidden
     return;
     case 88:
     this.mnuCapSent = ((System.Windows.Controls.MenuItem)(target));
     
     #line 359 "..\..\WndNote.xaml"
     this.mnuCapSent.Click += new System.Windows.RoutedEventHandler(this.mnuCapSent_Click);
     
     #line default
     #line hidden
     return;
     case 89:
     this.mnuCapWord = ((System.Windows.Controls.MenuItem)(target));
     
     #line 364 "..\..\WndNote.xaml"
     this.mnuCapWord.Click += new System.Windows.RoutedEventHandler(this.mnuCapWord_Click);
     
     #line default
     #line hidden
     return;
     case 90:
     this.mnuToggleCase = ((System.Windows.Controls.MenuItem)(target));
     
     #line 369 "..\..\WndNote.xaml"
     this.mnuToggleCase.Click += new System.Windows.RoutedEventHandler(this.mnuToggleCase_Click);
     
     #line default
     #line hidden
     return;
     case 91:
     this.toolStripSeparator7 = ((System.Windows.Controls.Separator)(target));
     return;
     case 92:
     this.mnuFont = ((System.Windows.Controls.MenuItem)(target));
     
     #line 375 "..\..\WndNote.xaml"
     this.mnuFont.Click += new System.Windows.RoutedEventHandler(this.mnuFont_Click);
     
     #line default
     #line hidden
     return;
     case 93:
     this.mnuFontSize = ((System.Windows.Controls.MenuItem)(target));
     return;
     case 94:
     this.mnuFontColor = ((System.Windows.Controls.MenuItem)(target));
     return;
     case 95:
     this.mnuBold = ((System.Windows.Controls.MenuItem)(target));
     
     #line 390 "..\..\WndNote.xaml"
     this.mnuBold.Click += new System.Windows.RoutedEventHandler(this.mnuBold_Click);
     
     #line default
     #line hidden
     return;
     case 96:
     this.mnuItalic = ((System.Windows.Controls.MenuItem)(target));
     
     #line 395 "..\..\WndNote.xaml"
     this.mnuItalic.Click += new System.Windows.RoutedEventHandler(this.mnuItalic_Click);
     
     #line default
     #line hidden
     return;
     case 97:
     this.mnuUnderline = ((System.Windows.Controls.MenuItem)(target));
     
     #line 400 "..\..\WndNote.xaml"
     this.mnuUnderline.Click += new System.Windows.RoutedEventHandler(this.mnuUnderline_Click);
     
     #line default
     #line hidden
     return;
     case 98:
     this.mnuStrikethrough = ((System.Windows.Controls.MenuItem)(target));
     
     #line 405 "..\..\WndNote.xaml"
     this.mnuStrikethrough.Click += new System.Windows.RoutedEventHandler(this.mnuStrikethrough_Click);
     
     #line default
     #line hidden
     return;
     case 99:
     this.mnuHighlight = ((System.Windows.Controls.MenuItem)(target));
     return;
     case 100:
     this.mnuAlignLeft = ((System.Windows.Controls.MenuItem)(target));
     
     #line 415 "..\..\WndNote.xaml"
     this.mnuAlignLeft.Click += new System.Windows.RoutedEventHandler(this.mnuAlignLeft_Click);
     
     #line default
     #line hidden
     return;
     case 101:
     this.mnuAlignCenter = ((System.Windows.Controls.MenuItem)(target));
     
     #line 420 "..\..\WndNote.xaml"
     this.mnuAlignCenter.Click += new System.Windows.RoutedEventHandler(this.mnuAlignCenter_Click);
     
     #line default
     #line hidden
     return;
     case 102:
     this.mnuAlignRight = ((System.Windows.Controls.MenuItem)(target));
     
     #line 425 "..\..\WndNote.xaml"
     this.mnuAlignRight.Click += new System.Windows.RoutedEventHandler(this.mnuAlignRight_Click);
     
     #line default
     #line hidden
     return;
     case 103:
     this.mnuBulletsNumbering = ((System.Windows.Controls.MenuItem)(target));
     return;
     case 104:
     this.toolStripSeparator15 = ((System.Windows.Controls.Separator)(target));
     return;
     case 105:
     this.mnuLineSpacing = ((System.Windows.Controls.MenuItem)(target));
     return;
     case 106:
     this.mnuSpace10 = ((System.Windows.Controls.MenuItem)(target));
     
     #line 440 "..\..\WndNote.xaml"
     this.mnuSpace10.Click += new System.Windows.RoutedEventHandler(this.mnuSpace10_Click);
     
     #line default
     #line hidden
     return;
     case 107:
     this.mnuSpace15 = ((System.Windows.Controls.MenuItem)(target));
     
     #line 441 "..\..\WndNote.xaml"
     this.mnuSpace15.Click += new System.Windows.RoutedEventHandler(this.mnuSpace15_Click);
     
     #line default
     #line hidden
     return;
     case 108:
     this.mnuSpace20 = ((System.Windows.Controls.MenuItem)(target));
     
     #line 442 "..\..\WndNote.xaml"
     this.mnuSpace20.Click += new System.Windows.RoutedEventHandler(this.mnuSpace20_Click);
     
     #line default
     #line hidden
     return;
     case 109:
     this.mnuSpace30 = ((System.Windows.Controls.MenuItem)(target));
     
     #line 443 "..\..\WndNote.xaml"
     this.mnuSpace30.Click += new System.Windows.RoutedEventHandler(this.mnuSpace30_Click);
     
     #line default
     #line hidden
     return;
     case 110:
     this.toolStripSeparator17 = ((System.Windows.Controls.Separator)(target));
     return;
     case 111:
     this.mnuAddSpaceBefore = ((System.Windows.Controls.MenuItem)(target));
     
     #line 445 "..\..\WndNote.xaml"
     this.mnuAddSpaceBefore.Click += new System.Windows.RoutedEventHandler(this.mnuAddSpaceBefore_Click);
     
     #line default
     #line hidden
     return;
     case 112:
     this.mnuRemoveSpaceBefore = ((System.Windows.Controls.MenuItem)(target));
     
     #line 450 "..\..\WndNote.xaml"
     this.mnuRemoveSpaceBefore.Click += new System.Windows.RoutedEventHandler(this.mnuRemoveSpaceBefore_Click);
     
     #line default
     #line hidden
     return;
     case 113:
     this.mnuRemoveSpaceAfter = ((System.Windows.Controls.MenuItem)(target));
     
     #line 455 "..\..\WndNote.xaml"
     this.mnuRemoveSpaceAfter.Click += new System.Windows.RoutedEventHandler(this.mnuRemoveSpaceAfter_Click);
     
     #line default
     #line hidden
     return;
     case 114:
     this.mnuAddSpaceAfter = ((System.Windows.Controls.MenuItem)(target));
     
     #line 460 "..\..\WndNote.xaml"
     this.mnuAddSpaceAfter.Click += new System.Windows.RoutedEventHandler(this.mnuAddSpaceAfter_Click);
     
     #line default
     #line hidden
     return;
     case 115:
     this.toolStripSeparator16 = ((System.Windows.Controls.Separator)(target));
     return;
     case 116:
     this.mnuSubscript = ((System.Windows.Controls.MenuItem)(target));
     
     #line 467 "..\..\WndNote.xaml"
     this.mnuSubscript.Click += new System.Windows.RoutedEventHandler(this.mnuSubscript_Click);
     
     #line default
     #line hidden
     return;
     case 117:
     this.mnuSuperscript = ((System.Windows.Controls.MenuItem)(target));
     
     #line 472 "..\..\WndNote.xaml"
     this.mnuSuperscript.Click += new System.Windows.RoutedEventHandler(this.mnuSuperscript_Click);
     
     #line default
     #line hidden
     return;
     case 118:
     this.toolStripSeparator19 = ((System.Windows.Controls.Separator)(target));
     return;
     case 119:
     this.mnuClearFormat = ((System.Windows.Controls.MenuItem)(target));
     
     #line 478 "..\..\WndNote.xaml"
     this.mnuClearFormat.Click += new System.Windows.RoutedEventHandler(this.mnuClearFormat_Click);
     
     #line default
     #line hidden
     return;
     case 120:
     this.toolStripSeparator20 = ((System.Windows.Controls.Separator)(target));
     return;
     case 121:
     this.mnuIncreaseIndent = ((System.Windows.Controls.MenuItem)(target));
     
     #line 484 "..\..\WndNote.xaml"
     this.mnuIncreaseIndent.Click += new System.Windows.RoutedEventHandler(this.mnuIncreaseIndent_Click);
     
     #line default
     #line hidden
     return;
     case 122:
     this.mnuDecreaseIndent = ((System.Windows.Controls.MenuItem)(target));
     
     #line 489 "..\..\WndNote.xaml"
     this.mnuDecreaseIndent.Click += new System.Windows.RoutedEventHandler(this.mnuDecreaseIndent_Click);
     
     #line default
     #line hidden
     return;
     case 123:
     this.toolStripMenuItem51 = ((System.Windows.Controls.Separator)(target));
     return;
     case 124:
     this.mnuInsert = ((System.Windows.Controls.MenuItem)(target));
     return;
     case 125:
     this.mnuInsertPicture = ((System.Windows.Controls.MenuItem)(target));
     
     #line 497 "..\..\WndNote.xaml"
     this.mnuInsertPicture.Click += new System.Windows.RoutedEventHandler(this.mnuInsertPicture_Click);
     
     #line default
     #line hidden
     return;
     case 126:
     this.mnuInsertSmiley = ((System.Windows.Controls.MenuItem)(target));
     
     #line 502 "..\..\WndNote.xaml"
     this.mnuInsertSmiley.Click += new System.Windows.RoutedEventHandler(this.mnuInsertSmiley_Click);
     
     #line default
     #line hidden
     return;
     case 127:
     this.mnuInsertDT = ((System.Windows.Controls.MenuItem)(target));
     
     #line 507 "..\..\WndNote.xaml"
     this.mnuInsertDT.Click += new System.Windows.RoutedEventHandler(this.mnuInsertDT_Click);
     
     #line default
     #line hidden
     return;
     case 128:
     this.mnuInsertTable = ((System.Windows.Controls.MenuItem)(target));
     
     #line 512 "..\..\WndNote.xaml"
     this.mnuInsertTable.Click += new System.Windows.RoutedEventHandler(this.mnuInsertTable_Click);
     
     #line default
     #line hidden
     return;
     case 129:
     this.mnuInsertSpecialSymbol = ((System.Windows.Controls.MenuItem)(target));
     
     #line 517 "..\..\WndNote.xaml"
     this.mnuInsertSpecialSymbol.Click += new System.Windows.RoutedEventHandler(this.mnuInsertSpecialSymbol_Click);
     
     #line default
     #line hidden
     return;
     case 130:
     this.mnuDrawing = ((System.Windows.Controls.MenuItem)(target));
     
     #line 522 "..\..\WndNote.xaml"
     this.mnuDrawing.Click += new System.Windows.RoutedEventHandler(this.mnuDrawing_Click);
     
     #line default
     #line hidden
     return;
     case 131:
     this.toolStripMenuItem52 = ((System.Windows.Controls.Separator)(target));
     return;
     case 132:
     this.mnuSpell = ((System.Windows.Controls.MenuItem)(target));
     return;
     case 133:
     this.mnuCheckSpellNow = ((System.Windows.Controls.MenuItem)(target));
     
     #line 533 "..\..\WndNote.xaml"
     this.mnuCheckSpellNow.Click += new System.Windows.RoutedEventHandler(this.mnuCheckSpellNow_Click);
     
     #line default
     #line hidden
     return;
     case 134:
     this.toolStripMenuItem53 = ((System.Windows.Controls.Separator)(target));
     return;
     case 135:
     this.mnuCheckSpellAuto = ((System.Windows.Controls.MenuItem)(target));
     
     #line 535 "..\..\WndNote.xaml"
     this.mnuCheckSpellAuto.Click += new System.Windows.RoutedEventHandler(this.mnuCheckSpellAuto_Click);
     
     #line default
     #line hidden
     return;
     case 136:
     this.toolStripMenuItem54 = ((System.Windows.Controls.Separator)(target));
     return;
     case 137:
     this.mnuDownloadDict = ((System.Windows.Controls.MenuItem)(target));
     
     #line 537 "..\..\WndNote.xaml"
     this.mnuDownloadDict.Click += new System.Windows.RoutedEventHandler(this.mnuDownloadDict_Click);
     
     #line default
     #line hidden
     return;
     case 138:
     this.toolStripMenuItem55 = ((System.Windows.Controls.Separator)(target));
     return;
     case 139:
     this.mnuFind = ((System.Windows.Controls.MenuItem)(target));
     
     #line 540 "..\..\WndNote.xaml"
     this.mnuFind.Click += new System.Windows.RoutedEventHandler(this.mnuFind_Click);
     
     #line default
     #line hidden
     return;
     case 140:
     this.mnuFindNext = ((System.Windows.Controls.MenuItem)(target));
     
     #line 545 "..\..\WndNote.xaml"
     this.mnuFindNext.Click += new System.Windows.RoutedEventHandler(this.mnuFindNext_Click);
     
     #line default
     #line hidden
     return;
     case 141:
     this.mnuReplace = ((System.Windows.Controls.MenuItem)(target));
     
     #line 550 "..\..\WndNote.xaml"
     this.mnuReplace.Click += new System.Windows.RoutedEventHandler(this.mnuReplace_Click);
     
     #line default
     #line hidden
     return;
     case 142:
     this.toolStripMenuItem56 = ((System.Windows.Controls.Separator)(target));
     return;
     case 143:
     this.mnuSearchWeb = ((System.Windows.Controls.MenuItem)(target));
     return;
     case 144:
     this.mnuPostOn = ((System.Windows.Controls.MenuItem)(target));
     return;
     case 145:
     this.mnuInsertPost = ((System.Windows.Controls.MenuItem)(target));
     return;
     case 146:
     this.toolStripMenuItem57 = ((System.Windows.Controls.Separator)(target));
     return;
     case 147:
     this.mnuSelectAll = ((System.Windows.Controls.MenuItem)(target));
     
     #line 572 "..\..\WndNote.xaml"
     this.mnuSelectAll.Click += new System.Windows.RoutedEventHandler(this.mnuSelectAll_Click);
     
     #line default
     #line hidden
     return;
     case 148:
     this.toolStripSeparator18 = ((System.Windows.Controls.Separator)(target));
     return;
     case 149:
     this.mnuSortAscending = ((System.Windows.Controls.MenuItem)(target));
     
     #line 578 "..\..\WndNote.xaml"
     this.mnuSortAscending.Click += new System.Windows.RoutedEventHandler(this.mnuSortAscending_Click);
     
     #line default
     #line hidden
     return;
     case 150:
     this.mnuSortDescending = ((System.Windows.Controls.MenuItem)(target));
     
     #line 583 "..\..\WndNote.xaml"
     this.mnuSortDescending.Click += new System.Windows.RoutedEventHandler(this.mnuSortDescending_Click);
     
     #line default
     #line hidden
     return;
     case 151:
     this.EditTargetSkinless = ((System.Windows.Controls.Border)(target));
     return;
     case 152:
     this.ctmBullets = ((System.Windows.Controls.ContextMenu)(target));
     return;
     case 153:
     this.mnuNoBullets = ((System.Windows.Controls.MenuItem)(target));
     
     #line 601 "..\..\WndNote.xaml"
     this.mnuNoBullets.Click += new System.Windows.RoutedEventHandler(this.BulletsMenu_Click);
     
     #line default
     #line hidden
     return;
     case 154:
     this.mnuBullets = ((System.Windows.Controls.MenuItem)(target));
     
     #line 602 "..\..\WndNote.xaml"
     this.mnuBullets.Click += new System.Windows.RoutedEventHandler(this.BulletsMenu_Click);
     
     #line default
     #line hidden
     return;
     case 155:
     this.mnuArabicPoint = ((System.Windows.Controls.MenuItem)(target));
     
     #line 603 "..\..\WndNote.xaml"
     this.mnuArabicPoint.Click += new System.Windows.RoutedEventHandler(this.BulletsMenu_Click);
     
     #line default
     #line hidden
     return;
     case 156:
     this.mnuArabicParts = ((System.Windows.Controls.MenuItem)(target));
     
     #line 604 "..\..\WndNote.xaml"
     this.mnuArabicParts.Click += new System.Windows.RoutedEventHandler(this.BulletsMenu_Click);
     
     #line default
     #line hidden
     return;
     case 157:
     this.mnuSmallLettersPoint = ((System.Windows.Controls.MenuItem)(target));
     
     #line 605 "..\..\WndNote.xaml"
     this.mnuSmallLettersPoint.Click += new System.Windows.RoutedEventHandler(this.BulletsMenu_Click);
     
     #line default
     #line hidden
     return;
     case 158:
     this.mnuSmallLettersPart = ((System.Windows.Controls.MenuItem)(target));
     
     #line 606 "..\..\WndNote.xaml"
     this.mnuSmallLettersPart.Click += new System.Windows.RoutedEventHandler(this.BulletsMenu_Click);
     
     #line default
     #line hidden
     return;
     case 159:
     this.mnuBigLettersPoint = ((System.Windows.Controls.MenuItem)(target));
     
     #line 607 "..\..\WndNote.xaml"
     this.mnuBigLettersPoint.Click += new System.Windows.RoutedEventHandler(this.BulletsMenu_Click);
     
     #line default
     #line hidden
     return;
     case 160:
     this.mnuBigLettersParts = ((System.Windows.Controls.MenuItem)(target));
     
     #line 608 "..\..\WndNote.xaml"
     this.mnuBigLettersParts.Click += new System.Windows.RoutedEventHandler(this.BulletsMenu_Click);
     
     #line default
     #line hidden
     return;
     case 161:
     this.mnuLatinSmall = ((System.Windows.Controls.MenuItem)(target));
     
     #line 609 "..\..\WndNote.xaml"
     this.mnuLatinSmall.Click += new System.Windows.RoutedEventHandler(this.BulletsMenu_Click);
     
     #line default
     #line hidden
     return;
     case 162:
     this.mnuLatinBig = ((System.Windows.Controls.MenuItem)(target));
     
     #line 610 "..\..\WndNote.xaml"
     this.mnuLatinBig.Click += new System.Windows.RoutedEventHandler(this.BulletsMenu_Click);
     
     #line default
     #line hidden
     return;
     case 163:
     this.ctmFontSize = ((System.Windows.Controls.ContextMenu)(target));
     return;
     case 164:
     
     #line 622 "..\..\WndNote.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SizeMenu_Click);
     
     #line default
     #line hidden
     return;
     case 165:
     
     #line 623 "..\..\WndNote.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SizeMenu_Click);
     
     #line default
     #line hidden
     return;
     case 166:
     
     #line 624 "..\..\WndNote.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SizeMenu_Click);
     
     #line default
     #line hidden
     return;
     case 167:
     
     #line 625 "..\..\WndNote.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SizeMenu_Click);
     
     #line default
     #line hidden
     return;
     case 168:
     
     #line 626 "..\..\WndNote.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SizeMenu_Click);
     
     #line default
     #line hidden
     return;
     case 169:
     
     #line 627 "..\..\WndNote.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SizeMenu_Click);
     
     #line default
     #line hidden
     return;
     case 170:
     
     #line 628 "..\..\WndNote.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SizeMenu_Click);
     
     #line default
     #line hidden
     return;
     case 171:
     
     #line 629 "..\..\WndNote.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SizeMenu_Click);
     
     #line default
     #line hidden
     return;
     case 172:
     
     #line 630 "..\..\WndNote.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SizeMenu_Click);
     
     #line default
     #line hidden
     return;
     case 173:
     
     #line 631 "..\..\WndNote.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SizeMenu_Click);
     
     #line default
     #line hidden
     return;
     case 174:
     
     #line 632 "..\..\WndNote.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SizeMenu_Click);
     
     #line default
     #line hidden
     return;
     case 175:
     
     #line 633 "..\..\WndNote.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SizeMenu_Click);
     
     #line default
     #line hidden
     return;
     case 176:
     
     #line 634 "..\..\WndNote.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SizeMenu_Click);
     
     #line default
     #line hidden
     return;
     case 177:
     
     #line 635 "..\..\WndNote.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SizeMenu_Click);
     
     #line default
     #line hidden
     return;
     case 178:
     
     #line 636 "..\..\WndNote.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SizeMenu_Click);
     
     #line default
     #line hidden
     return;
     case 179:
     
     #line 637 "..\..\WndNote.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SizeMenu_Click);
     
     #line default
     #line hidden
     return;
     case 180:
     this.ctmFontColor = ((System.Windows.Controls.ContextMenu)(target));
     return;
     case 181:
     this.mnuColorAutomatic = ((System.Windows.Controls.MenuItem)(target));
     
     #line 649 "..\..\WndNote.xaml"
     this.mnuColorAutomatic.Click += new System.Windows.RoutedEventHandler(this.FontColorMenu_Click);
     
     #line default
     #line hidden
     return;
     case 182:
     
     #line 650 "..\..\WndNote.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.FontColorMenu_Click);
     
     #line default
     #line hidden
     return;
     case 183:
     
     #line 651 "..\..\WndNote.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.FontColorMenu_Click);
     
     #line default
     #line hidden
     return;
     case 184:
     
     #line 652 "..\..\WndNote.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.FontColorMenu_Click);
     
     #line default
     #line hidden
     return;
     case 185:
     
     #line 653 "..\..\WndNote.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.FontColorMenu_Click);
     
     #line default
     #line hidden
     return;
     case 186:
     
     #line 654 "..\..\WndNote.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.FontColorMenu_Click);
     
     #line default
     #line hidden
     return;
     case 187:
     
     #line 655 "..\..\WndNote.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.FontColorMenu_Click);
     
     #line default
     #line hidden
     return;
     case 188:
     
     #line 656 "..\..\WndNote.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.FontColorMenu_Click);
     
     #line default
     #line hidden
     return;
     case 189:
     
     #line 657 "..\..\WndNote.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.FontColorMenu_Click);
     
     #line default
     #line hidden
     return;
     case 190:
     
     #line 658 "..\..\WndNote.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.FontColorMenu_Click);
     
     #line default
     #line hidden
     return;
     case 191:
     
     #line 659 "..\..\WndNote.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.FontColorMenu_Click);
     
     #line default
     #line hidden
     return;
     case 192:
     
     #line 660 "..\..\WndNote.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.FontColorMenu_Click);
     
     #line default
     #line hidden
     return;
     case 193:
     
     #line 661 "..\..\WndNote.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.FontColorMenu_Click);
     
     #line default
     #line hidden
     return;
     case 194:
     
     #line 662 "..\..\WndNote.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.FontColorMenu_Click);
     
     #line default
     #line hidden
     return;
     case 195:
     
     #line 663 "..\..\WndNote.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.FontColorMenu_Click);
     
     #line default
     #line hidden
     return;
     case 196:
     
     #line 664 "..\..\WndNote.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.FontColorMenu_Click);
     
     #line default
     #line hidden
     return;
     case 197:
     
     #line 665 "..\..\WndNote.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.FontColorMenu_Click);
     
     #line default
     #line hidden
     return;
     case 198:
     this.ctmFontHighlight = ((System.Windows.Controls.ContextMenu)(target));
     return;
     case 199:
     this.mnuNoHighlight = ((System.Windows.Controls.MenuItem)(target));
     
     #line 677 "..\..\WndNote.xaml"
     this.mnuNoHighlight.Click += new System.Windows.RoutedEventHandler(this.FontHighlightMenu_Click);
     
     #line default
     #line hidden
     return;
     case 200:
     
     #line 678 "..\..\WndNote.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.FontHighlightMenu_Click);
     
     #line default
     #line hidden
     return;
     case 201:
     
     #line 679 "..\..\WndNote.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.FontHighlightMenu_Click);
     
     #line default
     #line hidden
     return;
     case 202:
     
     #line 680 "..\..\WndNote.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.FontHighlightMenu_Click);
     
     #line default
     #line hidden
     return;
     case 203:
     
     #line 681 "..\..\WndNote.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.FontHighlightMenu_Click);
     
     #line default
     #line hidden
     return;
     case 204:
     
     #line 682 "..\..\WndNote.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.FontHighlightMenu_Click);
     
     #line default
     #line hidden
     return;
     case 205:
     
     #line 683 "..\..\WndNote.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.FontHighlightMenu_Click);
     
     #line default
     #line hidden
     return;
     case 206:
     
     #line 684 "..\..\WndNote.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.FontHighlightMenu_Click);
     
     #line default
     #line hidden
     return;
     case 207:
     
     #line 685 "..\..\WndNote.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.FontHighlightMenu_Click);
     
     #line default
     #line hidden
     return;
     case 208:
     
     #line 686 "..\..\WndNote.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.FontHighlightMenu_Click);
     
     #line default
     #line hidden
     return;
     case 209:
     
     #line 687 "..\..\WndNote.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.FontHighlightMenu_Click);
     
     #line default
     #line hidden
     return;
     case 210:
     
     #line 688 "..\..\WndNote.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.FontHighlightMenu_Click);
     
     #line default
     #line hidden
     return;
     case 211:
     
     #line 689 "..\..\WndNote.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.FontHighlightMenu_Click);
     
     #line default
     #line hidden
     return;
     case 212:
     
     #line 690 "..\..\WndNote.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.FontHighlightMenu_Click);
     
     #line default
     #line hidden
     return;
     case 213:
     
     #line 691 "..\..\WndNote.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.FontHighlightMenu_Click);
     
     #line default
     #line hidden
     return;
     case 214:
     
     #line 692 "..\..\WndNote.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.FontHighlightMenu_Click);
     
     #line default
     #line hidden
     return;
     case 215:
     
     #line 693 "..\..\WndNote.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.FontHighlightMenu_Click);
     
     #line default
     #line hidden
     return;
     case 216:
     this.ctmDrop = ((System.Windows.Controls.ContextMenu)(target));
     
     #line 699 "..\..\WndNote.xaml"
     this.ctmDrop.Closed += new System.Windows.RoutedEventHandler(this.ctmDrop_Closed);
     
     #line default
     #line hidden
     return;
     case 217:
     this.mnuInsertContent = ((System.Windows.Controls.MenuItem)(target));
     
     #line 700 "..\..\WndNote.xaml"
     this.mnuInsertContent.Click += new System.Windows.RoutedEventHandler(this.mnuInsertContent_Click);
     
     #line default
     #line hidden
     return;
     case 218:
     this.mnuInsertObject = ((System.Windows.Controls.MenuItem)(target));
     
     #line 701 "..\..\WndNote.xaml"
     this.mnuInsertObject.Click += new System.Windows.RoutedEventHandler(this.mnuInsertObject_Click);
     
     #line default
     #line hidden
     return;
     case 219:
     this.mnuInsertLink = ((System.Windows.Controls.MenuItem)(target));
     
     #line 702 "..\..\WndNote.xaml"
     this.mnuInsertLink.Click += new System.Windows.RoutedEventHandler(this.mnuInsertLink_Click);
     
     #line default
     #line hidden
     return;
     case 220:
     this.lnSizeNorth = ((System.Windows.Shapes.Line)(target));
     
     #line 707 "..\..\WndNote.xaml"
     this.lnSizeNorth.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.OnSizeNorth);
     
     #line default
     #line hidden
     return;
     case 221:
     this.lnSizeSouth = ((System.Windows.Shapes.Line)(target));
     
     #line 717 "..\..\WndNote.xaml"
     this.lnSizeSouth.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.OnSizeSouth);
     
     #line default
     #line hidden
     return;
     case 222:
     this.lnSizeWest = ((System.Windows.Shapes.Line)(target));
     
     #line 728 "..\..\WndNote.xaml"
     this.lnSizeWest.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.OnSizeWest);
     
     #line default
     #line hidden
     return;
     case 223:
     this.lnSizeEast = ((System.Windows.Shapes.Line)(target));
     
     #line 738 "..\..\WndNote.xaml"
     this.lnSizeEast.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.OnSizeEast);
     
     #line default
     #line hidden
     return;
     case 224:
     this.rectSizeNorthWest = ((System.Windows.Shapes.Rectangle)(target));
     
     #line 749 "..\..\WndNote.xaml"
     this.rectSizeNorthWest.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.OnSizeNorthWest);
     
     #line default
     #line hidden
     return;
     case 225:
     this.rectSizeNorthEast = ((System.Windows.Shapes.Rectangle)(target));
     
     #line 758 "..\..\WndNote.xaml"
     this.rectSizeNorthEast.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.OnSizeNorthEast);
     
     #line default
     #line hidden
     return;
     case 226:
     this.rectSizeSouthWest = ((System.Windows.Shapes.Rectangle)(target));
     
     #line 767 "..\..\WndNote.xaml"
     this.rectSizeSouthWest.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.OnSizeSouthWest);
     
     #line default
     #line hidden
     return;
     case 227:
     this.gripSize = ((System.Windows.Controls.Primitives.ResizeGrip)(target));
     
     #line 776 "..\..\WndNote.xaml"
     this.gripSize.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.OnSizeSouthEast);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }
Ejemplo n.º 5
0
        private void createMenusOrder(SQLiteDataObject oData, bool firstTime)
        {
            var dn = new WndNote();
            var dcp = new WndCP(false);
            try
            {
                var ctmNote = dn.NoteMenu;
                var ctmEdit = dn.EditMenu;
                var ctmList = dcp.CPMenu;

                if (firstTime)
                {
                    PNStatic.SpTextProvider.SplashText = PNLang.Instance.GetMessageText("load_menus", "Preparing menus order table");
                    foreach (var ti in ctmPN.Items.OfType<Control>())
                    {
                        addMenusOrder(oData, ctmPN.Name, ti, null, ctmPN.Items.IndexOf(ti));
                    }
                    foreach (var ti in ctmNote.Items.OfType<Control>())
                    {
                        addMenusOrder(oData, ctmNote.Name, ti, null, ctmNote.Items.IndexOf(ti));
                    }
                    foreach (var ti in ctmEdit.Items.OfType<Control>())
                    {
                        addMenusOrder(oData, ctmEdit.Name, ti, null, ctmEdit.Items.IndexOf(ti));
                    }
                    foreach (var ti in ctmList.Items.OfType<Control>())
                    {
                        addMenusOrder(oData, ctmList.Name, ti, null, ctmList.Items.IndexOf(ti));
                    }
                }
                else
                {
                    var updateList = new List<string>();
                    const string SQL = "SELECT MENU_NAME FROM MENUS_ORDER WHERE CONTEXT_NAME = '%CONTEXT_NAME%'";
                    using (var t = oData.FillDataTable(SQL.Replace("%CONTEXT_NAME%", ctmPN.Name)))
                    {
                        var names = t.AsEnumerable().Select(r => Convert.ToString(r["MENU_NAME"]));
                        foreach (var ti in ctmPN.Items.OfType<Control>())
                        {
                            newMenusOrder(oData, ctmPN.Name, ti, null, ctmPN.Items.IndexOf(ti), names, updateList);
                        }
                    }
                    using (var t = oData.FillDataTable(SQL.Replace("%CONTEXT_NAME%", ctmNote.Name)))
                    {
                        var names = t.AsEnumerable().Select(r => Convert.ToString(r["MENU_NAME"]));
                        foreach (var ti in ctmNote.Items.OfType<Control>())
                        {
                            newMenusOrder(oData, ctmNote.Name, ti, null, ctmNote.Items.IndexOf(ti), names, updateList);
                        }
                    }
                    using (var t = oData.FillDataTable(SQL.Replace("%CONTEXT_NAME%", ctmEdit.Name)))
                    {
                        var names = t.AsEnumerable().Select(r => Convert.ToString(r["MENU_NAME"]));
                        foreach (var ti in ctmEdit.Items.OfType<Control>())
                        {
                            newMenusOrder(oData, ctmEdit.Name, ti, null, ctmEdit.Items.IndexOf(ti), names, updateList);
                        }
                    }
                    using (var t = oData.FillDataTable(SQL.Replace("%CONTEXT_NAME%", ctmList.Name)))
                    {
                        var names = t.AsEnumerable().Select(r => Convert.ToString(r["MENU_NAME"]));
                        foreach (var ti in ctmList.Items.OfType<Control>())
                        {
                            newMenusOrder(oData, ctmList.Name, ti, null, ctmList.Items.IndexOf(ti), names, updateList);
                        }
                    }

                    updateList.RemoveAll(string.IsNullOrWhiteSpace);
                    if (updateList.Count > 0)
                    {
                        PNStatic.SpTextProvider.SplashText = PNLang.Instance.GetMessageText("update_menus_order",
                            "Updating menus indexes");
                        foreach (var s in updateList)
                        {
                            oData.Execute(s);
                        }
                    }
                }
                PNMenus.PrepareDefaultMenuStrip(ctmPN, MenuType.Main, false);
                PNMenus.PrepareDefaultMenuStrip(ctmNote, MenuType.Note, false);
                PNMenus.PrepareDefaultMenuStrip(ctmEdit, MenuType.Edit, false);
                PNMenus.PrepareDefaultMenuStrip(ctmList, MenuType.ControlPanel, false);
                PNMenus.PrepareDefaultMenuStrip(ctmPN, MenuType.Main, true);
                PNMenus.PrepareDefaultMenuStrip(ctmNote, MenuType.Note, true);
                PNMenus.PrepareDefaultMenuStrip(ctmEdit, MenuType.Edit, true);
                PNMenus.PrepareDefaultMenuStrip(ctmList, MenuType.ControlPanel, true);
                PNMenus.CheckAndApplyNewMenusOrder(ctmPN);
            }
            catch (Exception ex)
            {
                PNStatic.LogException(ex);
            }
            finally
            {
                dn.Close();
                dcp.Close();
            }
        }
Ejemplo n.º 6
0
 private void prepareHotkeysTable(SQLiteDataObject oData)
 {
     var d = new WndNote();
     try
     {
         var id = PNData.HK_START;
         var o = oData.GetScalar("SELECT MAX(ID) FROM HOT_KEYS");
         if (o != null && !DBNull.Value.Equals(o))
         {
             id = (int)(long)o + 1;
         }
         startPreparingMenuHotkeys(HotkeyType.Main, oData, ctmPN, ref id);
         startPreparingMenuHotkeys(HotkeyType.Note, oData, d.NoteMenu, ref id);
         startPreparingMenuHotkeys(HotkeyType.Edit, oData, d.EditMenu, ref id);
         startPreparingGroupsHotkeys(HotkeyType.Group, oData, ref id);
     }
     catch (Exception ex)
     {
         PNStatic.LogException(ex);
     }
     finally
     {
         d.Close();
     }
 }
Ejemplo n.º 7
0
        private bool preSaveMenus(MenuType type, TreeView tvw)
        {
            try
            {
                foreach(var pti in tvw.Items.OfType<PNTreeItem>())
                {
                    fillNodesList(pti, _OrderLists[type].Item2, _HiddenLists[type].Item2);
                }
                if (_OrderLists[type].Item1.Where((t, i) => t != _OrderLists[type].Item2[i]).Any())
                {
                    foreach (var pti in tvw.Items.OfType<PNTreeItem>())
                    {
                        createOrderSql(pti);
                    }
                    switch (type)
                    {
                        case MenuType.Main:
                            _MenusOrderChanged.Main = true;
                            break;
                        case MenuType.Note:
                            {
                                var d = new WndNote();
                                try
                                {
                                    _MenusOrderChanged.Note = true;
                                    PNMenus.PrepareDefaultMenuStrip(d.NoteMenu, MenuType.Note, true);
                                }
                                finally
                                {
                                    d.Close();
                                }
                            }
                            break;
                        case MenuType.Edit:
                            {
                                var d = new WndNote();
                                try
                                {
                                    _MenusOrderChanged.Edit = true;
                                    PNMenus.PrepareDefaultMenuStrip(d.EditMenu, MenuType.Edit, true);
                                }
                                finally
                                {
                                    d.Close();
                                }
                            }
                            break;
                        case MenuType.ControlPanel:
                            {
                                var d = new WndCP();
                                try
                                {
                                    _MenusOrderChanged.ControlPanel = true;
                                    PNMenus.PrepareDefaultMenuStrip(d.CPMenu, MenuType.ControlPanel, true);
                                }
                                finally
                                {
                                    d.Close();
                                }
                            }
                            break;
                    }
                }

                _TempHiddenMenus.AddRange(
                    _HiddenLists[type].Item2.Select(s => new PNHiddenMenu(s, type)));

                return true;
            }
            catch (Exception ex)
            {
                PNStatic.LogException(ex);
                return false;
            }
        }