Beispiel #1
0
		/// <summary>
		/// Initializes a new instance of the <see cref="NuGenSlide"/> class.
		/// </summary>
		public NuGenSlide()
		{
			this.SetStyle(ControlStyles.Opaque, true);
			_viewer = new SlideViewer(this);
			_viewer.MinZoom = 0.1f;
			_viewer.MaxZoom = 3.0f;
		}
Beispiel #2
0
		protected override void Dispose(bool disposing)
		{
			if (disposing)
			{
				if (_viewer != null)
				{
					_viewer.Dispose();
					_viewer = null;
				}
			}

			base.Dispose(disposing);
		}