예제 #1
0
        internal override void Dispose(bool disposing)
        {
            if (disposing)
            {
                // Free managed
                if (_workbooks != null)
                {
                    _workbooks.Dispose();
                    _workbooks = null;
                }

                if (_eventSink != null)
                {
                    _eventSink.Dispose();
                    _eventSink = null;
                }
            }

            base.Dispose(true);
        }
예제 #2
0
 internal Application(object applicationObj)
     : base(applicationObj)
 {
     _eventSink = new AppEvents_Sink(this);
 }
예제 #3
0
 /// <summary>
 /// Creates a new instance of Excel for the purposes of automation
 /// </summary>
 public Application()
     : base()
 {
     _eventSink = new AppEvents_Sink(this);
 }
예제 #4
0
 internal Application(object applicationObj)
     : base(applicationObj)
 {
     _eventSink = new AppEvents_Sink(InternalObject as IConnectionPointContainer);
 }
예제 #5
0
 /// <summary>
 /// Creates a new instance of Excel for the purposes of automation
 /// </summary>
 public Application()
     : base()
 {
     _eventSink = new AppEvents_Sink(InternalObject as IConnectionPointContainer);
 }
예제 #6
0
        internal override void Dispose(bool disposing)
        {
            if (disposing)
            {
                // Free managed
                if (_workbooks != null)
                {
                    _workbooks.Dispose();
                    _workbooks = null;
                }

                if (_eventSink != null)
                {
                    _eventSink.Dispose();
                    _eventSink = null;
                }
            }

            base.Dispose(true);
        }