/*********************************************************************************************
 * Copyright 2002 - Volian Enterprises, Inc. All rights reserved.
 * Volian Enterprises - Proprietary Information - DO NOT COPY OR DISTRIBUTE
 * ------------------------------------------------------------------------------
 * $Workfile: ZoomDialog.cs $     $Revision: 3 $
 * $Author: Kathy $   $Date: 12/06/02 11:56a $
 *
 * $History: ZoomDialog.cs $
 * 
 * *****************  Version 3  *****************
 * User: Kathy        Date: 12/06/02   Time: 11:56a
 * Updated in $/LibSource/ctlXMLEditLib
 * change font for zoom
 * 
 * *****************  Version 2  *****************
 * User: Kathy        Date: 11/04/02   Time: 1:38p
 * Updated in $/LibSource/ctlXMLEditLib
 * wasn't displaying text & make text fixed font for alignment
 * 
 * *****************  Version 1  *****************
 * User: Jsj          Date: 8/23/02    Time: 3:03p
 * Created in $/LibSource/ctlXMLEditLib
 *********************************************************************************************/

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

namespace ctlXMLEditLib
{
	/// <summary>
	/// Summary description for ZoomDialog.
	/// </summary>
	/// 

	public class ZoomDialog : System.Windows.Forms.Form
	{
		private System.Windows.Forms.Button btnSave;
		private System.Windows.Forms.Button btnCancel;
		private System.Windows.Forms.TextBox tbZoom;
		/// <summary>
		/// Required designer variable.
		/// </summary>
		private System.ComponentModel.Container components = null;
		private string edittext;
		
		public string ZoomText
		{
			get
			{
				return tbZoom.Text; 
			}
		}

		public ZoomDialog(string zmtext)
		{
			//
			// Required for Windows Form Designer support
			//
			edittext = zmtext;
			InitializeComponent();
			tbZoom.Text = zmtext;
			//
			// 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.tbZoom = new System.Windows.Forms.TextBox();
			this.btnSave = new System.Windows.Forms.Button();
			this.btnCancel = new System.Windows.Forms.Button();
			this.SuspendLayout();
			// 
			// tbZoom
			// 
			this.tbZoom.Font = new System.Drawing.Font("Letter Gothic", 8.249999F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
			this.tbZoom.Location = new System.Drawing.Point(24, 16);
			this.tbZoom.Multiline = true;
			this.tbZoom.Name = "tbZoom";
			this.tbZoom.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
			this.tbZoom.Size = new System.Drawing.Size(576, 392);
			this.tbZoom.TabIndex = 0;
			// 
			// btnSave
			// 
			this.btnSave.DialogResult = System.Windows.Forms.DialogResult.OK;
			this.btnSave.Location = new System.Drawing.Point(80, 440);
			this.btnSave.Name = "btnSave";
			this.btnSave.Size = new System.Drawing.Size(80, 32);
			this.btnSave.TabIndex = 1;
			this.btnSave.Text = "Save";
			this.btnSave.Click += new System.EventHandler(this.btnSave_Click);
			// 
			// btnCancel
			// 
			this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
			this.btnCancel.Location = new System.Drawing.Point(192, 440);
			this.btnCancel.Name = "btnCancel";
			this.btnCancel.Size = new System.Drawing.Size(80, 32);
			this.btnCancel.TabIndex = 2;
			this.btnCancel.Text = "Cancel";
			this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click);
			// 
			// ZoomDialog
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
			this.ClientSize = new System.Drawing.Size(616, 485);
			this.Controls.Add(this.btnCancel);
			this.Controls.Add(this.btnSave);
			this.Controls.Add(this.tbZoom);
			this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
			this.Name = "ZoomDialog";
			this.Text = "Zoom";
			this.ResumeLayout(false);
			this.PerformLayout();

		}
		#endregion
		private void btnSave_Click(object sender, System.EventArgs e)
		{
			this.Close();
		}
		private void btnCancel_Click(object sender, System.EventArgs e)
		{
			this.Close();
		}
		
	}
}
