public frmMonitor(QuickGenerator.Settings setting) { _setting = setting; if (_setting.capacityClipBoardRing < 3) _setting.capacityClipBoardRing = 3; clipRing = new ClipBoardRing(_setting.CapacityClipBoardRing); }
/// <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); }