Beispiel #1
0
        public override void OnHostingFormLoaded(MainForm mainForm)
        {
            if (mainForm.ReferenceEditorElectronicLocationsToolbarsManager?.Tools.Cast <ToolBase>().FirstOrDefault(tool => tool.Key.Equals("ReferenceEditorUriLocationsContextMenu")) is PopupMenuTool popupMenu)
            {
                _commandbarButton = CommandbarMenu.Create(popupMenu).InsertCommandbarButton(4, Key_Button_OpenWith, Properties.OpenWithAddonResources.MenuCaption);
            }


            base.OnHostingFormLoaded(mainForm);
        }
Beispiel #2
0
 public override void OnHostingFormLoaded(MainForm mainForm)
 {
     if (!mainForm.IsPreviewFullScreenForm && mainForm.Project.ProjectType == SwissAcademic.Citavi.ProjectType.DesktopSQLite)
     {
         if (mainForm.ReferenceEditorElectronicLocationsToolbarsManager?.Tools.Cast <ToolBase>().FirstOrDefault(tool => tool.Key.Equals("ReferenceEditorUriLocationsContextMenu")) is PopupMenuTool popupMenu)
         {
             var menu = CommandbarMenu.Create(popupMenu);
             _button = menu.InsertCommandbarButton(3, Keys_Button_ShowPdfSplitDialog, Properties.Resources.Addon_Command_Caption, image: Properties.Resources.CommandIcon);
         }
     }
     base.OnHostingFormLoaded(mainForm);
 }