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

namespace Canvas_C1Chart
{
	/// <summary>
	/// Summary description for Form1.
	/// </summary>
	public class Form1 : System.Windows.Forms.Form
	{
		private System.Windows.Forms.Button btnChart2D;
		private System.Windows.Forms.Button btnChart3D;
		private System.Windows.Forms.Button btnDiskSpace;
		private System.Windows.Forms.Label label1;
		private System.Windows.Forms.Button btnFloatBar;
		private System.Windows.Forms.Label label2;
		/// <summary>
		/// Required designer variable.
		/// </summary>
		private System.ComponentModel.Container components = null;

		public Form1()
		{
			//
			// 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 );
		}

		#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()
		{
			this.btnChart2D = new System.Windows.Forms.Button();
			this.btnChart3D = new System.Windows.Forms.Button();
			this.btnDiskSpace = new System.Windows.Forms.Button();
			this.label1 = new System.Windows.Forms.Label();
			this.btnFloatBar = new System.Windows.Forms.Button();
			this.label2 = new System.Windows.Forms.Label();
			this.SuspendLayout();
			// 
			// btnChart2D
			// 
			this.btnChart2D.Location = new System.Drawing.Point(42, 116);
			this.btnChart2D.Name = "btnChart2D";
			this.btnChart2D.Size = new System.Drawing.Size(128, 32);
			this.btnChart2D.TabIndex = 0;
			this.btnChart2D.Text = "Chart 2D";
			this.btnChart2D.Click += new System.EventHandler(this.btnChart2D_Click);
			// 
			// btnChart3D
			// 
			this.btnChart3D.Location = new System.Drawing.Point(218, 116);
			this.btnChart3D.Name = "btnChart3D";
			this.btnChart3D.Size = new System.Drawing.Size(128, 32);
			this.btnChart3D.TabIndex = 1;
			this.btnChart3D.Text = "Chart 3D";
			this.btnChart3D.Click += new System.EventHandler(this.btnChart3D_Click);
			// 
			// btnDiskSpace
			// 
			this.btnDiskSpace.Location = new System.Drawing.Point(42, 170);
			this.btnDiskSpace.Name = "btnDiskSpace";
			this.btnDiskSpace.Size = new System.Drawing.Size(128, 32);
			this.btnDiskSpace.TabIndex = 2;
			this.btnDiskSpace.Text = "Disk Space";
			this.btnDiskSpace.Click += new System.EventHandler(this.btnDiskSpace_Click);
			// 
			// label1
			// 
			this.label1.Location = new System.Drawing.Point(18, 22);
			this.label1.Name = "label1";
			this.label1.Size = new System.Drawing.Size(380, 40);
			this.label1.TabIndex = 4;
			this.label1.Text = "This sample chooses some of the demos from the product C1Chart, allows you to ren" +
				"der the Chart in Meta file format, and then use the C1Flash to reproduce the cha" +
				"rt in SWF format.";
			// 
			// btnFloatBar
			// 
			this.btnFloatBar.Location = new System.Drawing.Point(218, 170);
			this.btnFloatBar.Name = "btnFloatBar";
			this.btnFloatBar.Size = new System.Drawing.Size(128, 32);
			this.btnFloatBar.TabIndex = 5;
			this.btnFloatBar.Text = "Float Bar";
			this.btnFloatBar.Click += new System.EventHandler(this.btnFloatBar_Click);
			// 
			// label2
			// 
			this.label2.Location = new System.Drawing.Point(18, 64);
			this.label2.Name = "label2";
			this.label2.Size = new System.Drawing.Size(380, 40);
			this.label2.TabIndex = 6;
			this.label2.Text = "Please choose a chart sample below, ajust the appearance and select \"Flash\" from menu";
			// 
			// Form1
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
			this.ClientSize = new System.Drawing.Size(424, 232);
			this.Controls.AddRange(new System.Windows.Forms.Control[] {
																		  this.label2,
																		  this.btnFloatBar,
																		  this.label1,
																		  this.btnDiskSpace,
																		  this.btnChart3D,
																		  this.btnChart2D});
			this.Name = "Form1";
			this.Text = "Form1";
			this.ResumeLayout(false);

		}
		#endregion

		/// <summary>
		/// The main entry point for the application.
		/// </summary>
		[STAThread]
		static void Main() 
		{
			Application.Run(new Form1());
		}

		private void btnChart2D_Click(object sender, System.EventArgs e)
		{
			FormChart2D chart2D = new FormChart2D();
			chart2D.ShowDialog();
		}

		private void btnChart3D_Click(object sender, System.EventArgs e)
		{
			FormChart3D chart3D = new FormChart3D();
			chart3D.ShowDialog();
		}

		private void btnDiskSpace_Click(object sender, System.EventArgs e)
		{
			FormDiskSpace diskSpace = new FormDiskSpace();
			diskSpace.ShowDialog();
		}

		private void btnFloatBar_Click(object sender, System.EventArgs e)
		{
			FormFloatBar floatBar = new FormFloatBar();
			floatBar.ShowDialog();
		}
	}
}
