Пример #1
0
        private bool disposedValue = false; // To detect redundant calls

        protected virtual void Dispose(bool disposing)
        {
            if (!disposedValue)
            {
                if (disposing)
                {
                    if (this.Highlighter != null)
                    {
                        this.Highlighter.Dispose();
                        this.Highlighter = null;
                    }
                }

                disposedValue = true;
            }
        }
Пример #2
0
 /// <summary>
 /// Constructor
 /// </summary>
 private ImageOverlayDriver()
 {
     Highlighter = new ImageHighlighter(SetHighlightBtnState);
 }