Ejemplo n.º 1
0
 public void Initialize()
 {
     _stateBar.Initialize();
     foreach (var menu in _menus)
     {
         menu.Initialize();
     }
 }
Ejemplo n.º 2
0
 public void Initialize()
 {
     _stateBar.Initialize();
     foreach (var menu in _menus)
     {
         menu.Initialize();
     }
     EvaluateCanExecute(_parser.State);
 }
Ejemplo n.º 3
0
 private void InitializeRubberduckCommandBar()
 {
     try
     {
         _stateBar.Initialize();
     }
     catch (COMException exception)
     {
         _logger.Error(exception);
         throw; // NOTE: this exception should bubble up to _Extension.Startup() and cleanly fail the add-in's initialization.
     }
     catch (Exception exception)
     {
         // we don't want to abort init just because some CanExecute method threw a NRE
         _logger.Error(exception);
     }
 }