예제 #1
0
        public frmMonitor(QuickGenerator.Settings setting)
        {
            _setting = setting;

            if (_setting.capacityClipBoardRing < 3)
                _setting.capacityClipBoardRing = 3;

            clipRing = new ClipBoardRing(_setting.CapacityClipBoardRing);
        }
예제 #2
0
        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        protected override void Dispose(bool disposing)
        {
            if (isActive)
            {
                isActive = false;
                NativeMethods.ChangeClipboardChain(this.Handle, nextClipboardViewer);
            }

            if (clipRing != null)
            {
                clipRing.Clear();
                clipRing = null;
            }

            _setting = null;
            base.Dispose(disposing);
        }