Exemplo n.º 1
0
 /// <summary>
 /// Creates an instance of the application
 /// </summary>
 /// <param name="application">owner application</param>
 public CommonUtils(COMObject application)
 {
     if (null == application)
         throw new ArgumentNullException("application");
     _ownerApplication = application;
     _headerCaptionLine = _headerCaptionLineDefault;
     _infos = new Infos(this);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Creates an instance of the class
 /// </summary>
 /// <param name="owner">addin owner instance</param>
 /// <param name="isAutomation">host application is started for automation</param>
 protected internal CommonUtils(NetOffice.Tools.COMAddinBase owner, bool isAutomation)
 {
     if (null == owner)
         throw new ArgumentNullException("owner");
     Owner = owner;
     _ownerApplication = owner.AppInstance;
     _isAutomation = isAutomation;
     _headerCaptionLine = _headerCaptionLineDefault;
     _infos = new Infos(this);
 }