Esempio n. 1
0
        private void Setup()
        {
            _parser = new RubberduckParser();
            _parser.ParseStarted += _parser_ParseStarted;
            _parser.ParserError  += _parser_ParserError;

            _inspector = new Inspector(_parser, _configService);

            _parserErrorsPresenter = new ParserErrorsPresenter(_vbe, _addIn);

            _menu = new RubberduckMenu(_vbe, _addIn, _configService, _parser, _editor, _inspector);
            _menu.Initialize();

            _formContextMenu = new FormContextMenu(_vbe, _parser);
            _formContextMenu.Initialize();

            _codeInspectionsToolbar = new CodeInspectionsToolbar(_vbe, _inspector);
            _codeInspectionsToolbar.Initialize();

            if (toolbarCoords.X != -1 && toolbarCoords.Y != -1)
            {
                _codeInspectionsToolbar.ToolbarCoords = toolbarCoords;
            }
            _codeInspectionsToolbar.ToolbarVisible = displayToolbar;
        }
Esempio n. 2
0
 private void Dashboard_Load(object sender, EventArgs e)
 {
     _           = new PanelMenu(panel2, btnhide, 34, panel2.Width);
     formContext = new FormContextMenu(btnhide, CF);
     if (RemoteDBs.Settings.commonSettings.Get.Interface == MenuInterfaceType.Classic)
     {
         menuClassic.labelTotal.Font = new Font(menuClassic.labelTotal.Font.Name.ToString(), menuClassic.labelTotal.Font.Size + 8);
         menuClassic.labelInNO.Font  = new Font(menuClassic.labelInNO.Font.Name.ToString(), menuClassic.labelInNO.Font.Size + 2);
         menuClassic.xuiClock1.Font  = new Font(menuClassic.xuiClock1.Font.Name.ToString(), menuClassic.xuiClock1.Font.Size + 10);
         menuClassic.btnIssue.Font   = new Font(menuClassic.btnIssue.Font.Name.ToString(), menuClassic.btnIssue.Font.Size + 8);
     }
     else
     {
         foreach (Control s in menuModern.flPanel.Controls)
         {
             s.Size = new Size(196, 296);
         }
         menuModern.uiBasicSale1.labelTotal.Font = new Font(menuModern.uiBasicSale1.labelTotal.Font.Name.ToString(), menuModern.uiBasicSale1.labelTotal.Font.Size + 5);
         menuModern.uiBasicSale1.labelInNO.Font  = new Font(menuModern.uiBasicSale1.labelInNO.Font.Name.ToString(), menuModern.uiBasicSale1.labelInNO.Font.Size + 2);
         menuModern.uiBasicSale1.btnIssue.Font   = new Font(menuModern.uiBasicSale1.btnIssue.Font.Name.ToString(), menuModern.uiBasicSale1.btnIssue.Font.Size + 5);
     }
 }