public void OnConnection(object application, ext_ConnectMode connectMode, object addInInstance, ref Array custom)
 {
     _logger = new AddInLogger();
     _logger.Log("OnConnection");
     _addInInstance = (Microsoft.Vbe.Interop.AddIn)addInInstance;
     try
     {
         _hostApplication = CreateHostApplication((VBE)application);
         _logger.Log("Application is " + _hostApplication.Name);
         _logger.LogVbProjects(_addInInstance.VBE);
     }
     catch (Exception xcp)
     {
         _logger.Log(xcp.ToString());
     }
 }
Beispiel #2
0
 public AddIn(Microsoft.Vbe.Interop.AddIn target)
     : base(target)
 {
 }