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

namespace Project1
{
	/// <summary>
	///
	/// </summary>
	public class Form4 : System.Windows.Forms.Form
	{
		public System.Windows.Forms.Button Command1;
		public System.Windows.Forms.Button Command2;
		public System.Windows.Forms.RadioButton Option1;
		public System.Windows.Forms.RadioButton Option3;
		public System.Windows.Forms.RadioButton Option2;
		public System.Windows.Forms.RadioButton Option5;
		public System.Windows.Forms.RadioButton Option4;
		public System.Windows.Forms.RadioButton Option6;
		/// <summary>
		///
		/// </summary>
		private System.ComponentModel.Container components = null;

		public Form4()
		{
			//
			//
			//
			InitializeComponent();

			//
			//
			//
		}

		/// <summary>
		///
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if(components != null)
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}

		#region Windows Form Designer generated code
		/// <summary>
		/// デザイナ サポートに必要なメソッドです。このメソッドの内容を
		/// コード エディタで変更しないでください。
		/// </summary>
		private void InitializeComponent()
		{
			this.Command1 = new System.Windows.Forms.Button();
			this.Command2 = new System.Windows.Forms.Button();
			this.Option1 = new System.Windows.Forms.RadioButton();
			this.Option3 = new System.Windows.Forms.RadioButton();
			this.Option2 = new System.Windows.Forms.RadioButton();
			this.Option5 = new System.Windows.Forms.RadioButton();
			this.Option4 = new System.Windows.Forms.RadioButton();
			this.Option6 = new System.Windows.Forms.RadioButton();
			this.SuspendLayout();
			// 
			// Command1
			// 
			this.Command1.BackColor = System.Drawing.SystemColors.Control;
			this.Command1.Cursor = System.Windows.Forms.Cursors.Default;
			this.Command1.ForeColor = System.Drawing.SystemColors.ControlText;
			this.Command1.Location = new System.Drawing.Point(164, 32);
			this.Command1.Name = "Command1";
			this.Command1.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Command1.Size = new System.Drawing.Size(97, 41);
			this.Command1.TabIndex = 9;
			this.Command1.Text = "Save";
			this.Command1.Click += new System.EventHandler(this.Command1_Click);
			// 
			// Command2
			// 
			this.Command2.BackColor = System.Drawing.SystemColors.Control;
			this.Command2.Cursor = System.Windows.Forms.Cursors.Default;
			this.Command2.ForeColor = System.Drawing.SystemColors.ControlText;
			this.Command2.Location = new System.Drawing.Point(164, 96);
			this.Command2.Name = "Command2";
			this.Command2.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Command2.Size = new System.Drawing.Size(97, 41);
			this.Command2.TabIndex = 8;
			this.Command2.Text = "Cancel";
			this.Command2.Click += new System.EventHandler(this.Command2_Click);
			// 
			// Option1
			// 
			this.Option1.BackColor = System.Drawing.SystemColors.Control;
			this.Option1.Checked = true;
			this.Option1.Cursor = System.Windows.Forms.Cursors.Default;
			this.Option1.ForeColor = System.Drawing.SystemColors.ControlText;
			this.Option1.Location = new System.Drawing.Point(40, 20);
			this.Option1.Name = "Option1";
			this.Option1.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Option1.Size = new System.Drawing.Size(65, 15);
			this.Option1.TabIndex = 5;
			this.Option1.TabStop = true;
			this.Option1.Text = "WMF";
			// 
			// Option3
			// 
			this.Option3.BackColor = System.Drawing.SystemColors.Control;
			this.Option3.Cursor = System.Windows.Forms.Cursors.Default;
			this.Option3.ForeColor = System.Drawing.SystemColors.ControlText;
			this.Option3.Location = new System.Drawing.Point(40, 68);
			this.Option3.Name = "Option3";
			this.Option3.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Option3.Size = new System.Drawing.Size(65, 15);
			this.Option3.TabIndex = 7;
			this.Option3.TabStop = true;
			this.Option3.Text = "DXF";
			// 
			// Option2
			// 
			this.Option2.BackColor = System.Drawing.SystemColors.Control;
			this.Option2.Cursor = System.Windows.Forms.Cursors.Default;
			this.Option2.ForeColor = System.Drawing.SystemColors.ControlText;
			this.Option2.Location = new System.Drawing.Point(40, 44);
			this.Option2.Name = "Option2";
			this.Option2.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Option2.Size = new System.Drawing.Size(65, 15);
			this.Option2.TabIndex = 6;
			this.Option2.TabStop = true;
			this.Option2.Text = "EMF";
			// 
			// Option5
			// 
			this.Option5.BackColor = System.Drawing.SystemColors.Control;
			this.Option5.Cursor = System.Windows.Forms.Cursors.Default;
			this.Option5.ForeColor = System.Drawing.SystemColors.ControlText;
			this.Option5.Location = new System.Drawing.Point(40, 140);
			this.Option5.Name = "Option5";
			this.Option5.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Option5.Size = new System.Drawing.Size(76, 15);
			this.Option5.TabIndex = 11;
			this.Option5.TabStop = true;
			this.Option5.Text = "SXF(SFC)";
			// 
			// Option4
			// 
			this.Option4.BackColor = System.Drawing.SystemColors.Control;
			this.Option4.Cursor = System.Windows.Forms.Cursors.Default;
			this.Option4.ForeColor = System.Drawing.SystemColors.ControlText;
			this.Option4.Location = new System.Drawing.Point(40, 116);
			this.Option4.Name = "Option4";
			this.Option4.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Option4.Size = new System.Drawing.Size(72, 15);
			this.Option4.TabIndex = 10;
			this.Option4.TabStop = true;
			this.Option4.Text = "SXF(P21)";
			// 
			// Option6
			// 
			this.Option6.BackColor = System.Drawing.SystemColors.Control;
			this.Option6.Cursor = System.Windows.Forms.Cursors.Default;
			this.Option6.ForeColor = System.Drawing.SystemColors.ControlText;
			this.Option6.Location = new System.Drawing.Point(40, 92);
			this.Option6.Name = "Option6";
			this.Option6.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Option6.Size = new System.Drawing.Size(65, 15);
			this.Option6.TabIndex = 12;
			this.Option6.TabStop = true;
			this.Option6.Text = "SVG";
			// 
			// Form4
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(5, 12);
			this.ClientSize = new System.Drawing.Size(312, 182);
			this.Controls.Add(this.Option6);
			this.Controls.Add(this.Option5);
			this.Controls.Add(this.Option4);
			this.Controls.Add(this.Command1);
			this.Controls.Add(this.Command2);
			this.Controls.Add(this.Option3);
			this.Controls.Add(this.Option2);
			this.Controls.Add(this.Option1);
			this.Name = "Form4";
			this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
			this.Text = "Form4";
			this.Load += new System.EventHandler(this.Form4_Load);
			this.ResumeLayout(false);

		}
		#endregion

		private void Command1_Click(object sender, System.EventArgs e)
		{
			// WMF
			if (Option1.Checked == true)
				SaveType = IMAGEKIT7Lib.SaveFileConstants.ikSaveWMF;
		
			// EMF
			if (Option2.Checked == true)
				SaveType = IMAGEKIT7Lib.SaveFileConstants.ikSaveEMF;
		
			// DXF
			if (Option3.Checked == true)
				SaveType = IMAGEKIT7Lib.SaveFileConstants.ikSaveDXF;
		
			// SXF(P21)
			if (Option4.Checked == true)
				SaveType = IMAGEKIT7Lib.SaveFileConstants.ikSaveSXFP21;
		
			// SXF(SFC)
			if (Option5.Checked == true)
				SaveType = IMAGEKIT7Lib.SaveFileConstants.ikSaveSXFSFC;
		
			// SVG
			if (Option6.Checked == true)
				SaveType = IMAGEKIT7Lib.SaveFileConstants.ikSaveSVG;

			DialogResult = DialogResult.OK;
		}

		private void Command2_Click(object sender, System.EventArgs e)
		{
			DialogResult = DialogResult.Cancel;		
		}

		private void Form4_Load(object sender, System.EventArgs e)
		{
			SaveType = 0;
		}

		public IMAGEKIT7Lib.SaveFileConstants SaveType;
		public bool DxfSave;
	}
}
