コード例 #1
0
ファイル: CommonUtils.cs プロジェクト: swatt6400/NetOffice
 /// <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);
 }
コード例 #2
0
ファイル: CommonUtils.cs プロジェクト: swatt6400/NetOffice
 /// <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);
 }