using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;

namespace vclass.appsharing
{
	/// <summary>
	/// Summary description for ApplicationViewer.
	/// </summary>
	public class ApplicationViewer : System.Windows.Forms.Form
	{
		/// <summary>
		/// Required designer variable.
		/// </summary>
		private System.ComponentModel.Container components = null;

		public ApplicationViewer()
		{
			//
			// Required for Windows Form Designer support
			//
			InitializeComponent();

			//
			// TODO: Add any constructor code after InitializeComponent call
			//
		}

		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if(components != null)
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}

		public void setPicture(Image pic){
//			this.Size = pic.Size;
//			pictureBox1.Size = pic.Size;
//			pictureBox1.Image = pic;//.GetThumbnailImage(pictureBox1.Width, pictureBox1.Height, null, IntPtr.Zero);
			this.Size = pic.Size;
			this.BackgroundImage = pic;
			this.Show();
		}

		#region Windows Form Designer generated code
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
			System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(ApplicationViewer));
			// 
			// ApplicationViewer
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
			this.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("$this.BackgroundImage")));
			this.ClientSize = new System.Drawing.Size(328, 312);
			this.MaximizeBox = false;
			this.MinimizeBox = false;
			this.Name = "ApplicationViewer";

		}
		#endregion
	}
}
