예제 #1
0
 /// <summary>
 /// Clean up any resources being used.
 /// </summary>
 /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
 protected override void Dispose(bool disposing)
 {
     if (_IconHelper != null)
     {
         _IconHelper.Dispose();
     }
     if (_Container != null)
     {
         _Container.Dispose();
     }
     if (_Highlighter != null)
     {
         _Highlighter.Dispose();
     }
     if (Finder != null)
     {
         Finder.Dispose();
     }
     _SubClass.Dispose();
     if (disposing && (components != null))
     {
         components.Dispose();
     }
     base.Dispose(disposing);
 }
예제 #2
0
        public void Dispose()
        {
            _ui.Preview.ConnectedSource = null;
            _ui.Preview.Disconnect();
            _ui.Preview.Dispose();

            _instances--;
            if (_instances <= 0)
            {
                _finder.Dispose();
                _finder = null;
            }
        }
예제 #3
0
            private void Dispose(bool disposing)
            {
                if (disposing)
                {
                    if (!disposed)
                    {
                        if (_findInstance != null)
                        {
                            _findInstance.Dispose();
                        }

                        // Not required, but "correct". (see the SDK documentation)
                        NDIlib.destroy();

                        disposed = true;
                    }
                }
            }
예제 #4
0
 protected override void Dispose(bool disposing)
 {
     if (Roi != null)
     {
         Roi.Dispose();
         Roi = null;
     }
     if (Matcher != null)
     {
         Matcher.Dispose();
         Matcher = null;
     }
     if (Finder != null)
     {
         Finder.Dispose();
         Finder = null;
     }
     base.Dispose(disposing);
 }