Ejemplo n.º 1
0
        public override void Dispose()
        {
            lock (syncRoot)
            {
                if (!IsDisposed)
                {
                    //Expander = null;
                    if (AccessorParametersManager != null)
                    {
                        AccessorParametersManager.Dispose();
                        AccessorParametersManager = null;
                    }

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

                    CellsThatContainSearchValue.Clear();
                    if (ViewSheet != null)
                    {
                        ExcelApplication.ReleaseComObject(ViewSheet);
                        ViewSheet = null;
                    }

                    FirstOutputCell      = null;
                    currentSelectedRange = null;
                    ClearingCell         = null;

                    base.Dispose();
                }
            }
        }
Ejemplo n.º 2
0
 public void SetAccessorParameters(IEnumerable <object> parameters)
 {
     lock (syncRoot)
     {
         if (!IsDisposed)
         {
             AccessorParametersManager?.Dispose();
             AccessorParametersManager = new AccessorParametersManager(this, parameters);
         }
     }
 }