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

namespace vclass.presentation
{
	/// <summary>
	/// Summary description for PresentationToolbox.
	/// </summary>
	public class PresentationToolbox : System.Windows.Forms.Form
	{
		private System.Windows.Forms.Button button2;
		private System.Windows.Forms.Button shareButton;
		private System.Windows.Forms.Button MousePointerButton;
		private System.Windows.Forms.Button button1;
		/// <summary>
		/// Required designer variable.
		/// </summary>
		private System.ComponentModel.Container components = null;
		private PresentationForm pForm = null;

		public PresentationToolbox(PresentationForm form)
		{
			//
			// Required for Windows Form Designer support
			//
			pForm = form;
			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 );
		}

		#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(PresentationToolbox));
			this.button2 = new System.Windows.Forms.Button();
			this.shareButton = new System.Windows.Forms.Button();
			this.MousePointerButton = new System.Windows.Forms.Button();
			this.button1 = new System.Windows.Forms.Button();
			this.SuspendLayout();
			// 
			// button2
			// 
			this.button2.Location = new System.Drawing.Point(8, 8);
			this.button2.Name = "button2";
			this.button2.Size = new System.Drawing.Size(144, 32);
			this.button2.TabIndex = 1;
			this.button2.Text = "Copy to White Board";
			// 
			// shareButton
			// 
			this.shareButton.BackColor = System.Drawing.Color.RosyBrown;
			this.shareButton.Location = new System.Drawing.Point(8, 104);
			this.shareButton.Name = "shareButton";
			this.shareButton.Size = new System.Drawing.Size(144, 32);
			this.shareButton.TabIndex = 6;
			this.shareButton.Text = "Start/Stop Sharing";
			this.shareButton.Click += new System.EventHandler(this.shareButton_Click);
			// 
			// MousePointerButton
			// 
			this.MousePointerButton.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("MousePointerButton.BackgroundImage")));
			this.MousePointerButton.Location = new System.Drawing.Point(8, 48);
			this.MousePointerButton.Name = "MousePointerButton";
			this.MousePointerButton.Size = new System.Drawing.Size(48, 48);
			this.MousePointerButton.TabIndex = 7;
			// 
			// button1
			// 
			this.button1.Location = new System.Drawing.Point(64, 48);
			this.button1.Name = "button1";
			this.button1.Size = new System.Drawing.Size(88, 48);
			this.button1.TabIndex = 8;
			this.button1.Text = "Use Whiteboard Cursor";
			// 
			// PresentationToolbox
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
			this.ClientSize = new System.Drawing.Size(160, 142);
			this.ControlBox = false;
			this.Controls.Add(this.button1);
			this.Controls.Add(this.MousePointerButton);
			this.Controls.Add(this.shareButton);
			this.Controls.Add(this.button2);
			this.Name = "PresentationToolbox";
			this.Text = "Presentation Toolbox";
			this.ResumeLayout(false);

		}
		#endregion

		private void shareButton_Click(object sender, System.EventArgs e)
		{
			//TODO: start/stop
			pForm.startSharing();
		}
	}
}
