Beispiel #1
0
        /// <summary>
        /// Construct a GraphicsControlEventArgs.
        /// </summary>
        /// <param name="ctx">
        /// The <see cref="GraphicsContext"/> used for the <see cref="GraphicsControl"/>.
        /// </param>
        /// <param name="framebuffer">
        /// The <see cref="GraphicsSurface"/> displaying the rendering result.
        /// </param>
        public GraphicsControlEventArgs(GraphicsContext ctx, GraphicsSurface framebuffer)
        {
            if (ctx == null)
            {
                throw new ArgumentNullException("ctx");
            }
            if (framebuffer == null)
            {
                throw new ArgumentNullException("framebuffer");
            }

            Context     = ctx;
            Framebuffer = framebuffer;
        }
		/// <summary>
		/// Construct a GraphicsControlEventArgs.
		/// </summary>
		/// <param name="ctx">
		/// The <see cref="GraphicsContext"/> used for the <see cref="GraphicsControl"/>.
		/// </param>
		/// <param name="framebuffer">
		/// The <see cref="GraphicsSurface"/> displaying the rendering result.
		/// </param>
		public GraphicsControlEventArgs(GraphicsContext ctx, GraphicsSurface framebuffer)
		{
			if (ctx == null)
				throw new ArgumentNullException("ctx");
			if (framebuffer == null)
				throw new ArgumentNullException("framebuffer");

			Context = ctx;
			Framebuffer = framebuffer;
		}