context: /*
   * Copyright (C) 2006-2010 - Frictional Games
   *
   * This file is part of HPL1 Engine.
   *
   * HPL1 Engine is free software: you can redistribute it and/or modify
   * it under the terms of the GNU General Public License as published by
   * the Free Software Foundation, either version 3 of the License, or
   * (at your option) any later version.
   *
   * HPL1 Engine is distributed in the hope that it will be useful,
   * but WITHOUT ANY WARRANTY; without even the implied warranty of
   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   * GNU General Public License for more details.
   *
   * You should have received a copy of the GNU General Public License
   * along with HPL1 Engine.  If not, see <http://www.gnu.org/licenses/>.
   */
  using System;
  using System.Drawing;
  using System.Collections;
  using System.ComponentModel;
  using System.Windows.Forms;
  
  namespace Mapeditor
  {
  	/// <summary>
  	/// Summary description for LayerForm.
  	/// </summary>
  	public class frmLayers : System.Windows.Forms.Form
  	{
  		private System.Windows.Forms.GroupBox groupLayers;
  		private System.Windows.Forms.Button objNewButton;
  		private System.Windows.Forms.Button objDeleteButton;
  		private System.Windows.Forms.Button objMoveUpButton;
  		private System.Windows.Forms.Button objMoveDownButton;
  		private System.Windows.Forms.GroupBox groupSettings;
  		private System.Windows.Forms.Label ObjShadowLabel;
  		public System.Windows.Forms.ComboBox objShadowLayerList;
  		private System.Windows.Forms.GroupBox groupGeneral;
  		/// <summary>
  		/// Required designer variable.
  		/// </summary>
  		private System.ComponentModel.Container components = null;
  
  		private frmMain mMainForm=null;
  		public System.Windows.Forms.CheckedListBox objLayerList;
  
  		public ArrayList mlstTileLayers;
  		private System.Windows.Forms.Button objEditButton;
  		private System.Windows.Forms.Label objPropLabel;
  
  		public int mlSelectedLayer=-1;
  
  		public frmLayers(frmMain aMainForm)
  		{
  			//
  			// Required for Windows Form Designer support
  			//
  			InitializeComponent();
  
  			//
  			// TODO: Add any constructor code after InitializeComponent call
  			//
  
  			mMainForm = aMainForm;
  
  			mlstTileLayers = new ArrayList();
  		}
  
  		/// <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.objLayerList = new System.Windows.Forms.CheckedListBox();
  			this.groupLayers = new System.Windows.Forms.GroupBox();
  			this.objEditButton = new System.Windows.Forms.Button();
  			this.objMoveDownButton = new System.Windows.Forms.Button();
  			this.objMoveUpButton = new System.Windows.Forms.Button();
  			this.objDeleteButton = new System.Windows.Forms.Button();
  			this.objNewButton = new System.Windows.Forms.Button();
  			this.groupSettings = new System.Windows.Forms.GroupBox();
  			this.ObjShadowLabel = new System.Windows.Forms.Label();
  			this.objShadowLayerList = new System.Windows.Forms.ComboBox();
  			this.groupGeneral = new System.Windows.Forms.GroupBox();
  			this.objPropLabel = new System.Windows.Forms.Label();
  			this.groupLayers.SuspendLayout();
  			this.groupSettings.SuspendLayout();
  			this.groupGeneral.SuspendLayout();
  			this.SuspendLayout();
  			// 
  			// objLayerList
  			// 
  			this.objLayerList.Location = new System.Drawing.Point(8, 24);
  			this.objLayerList.Name = "objLayerList";
  			this.objLayerList.ScrollAlwaysVisible = true;
  			this.objLayerList.Size = new System.Drawing.Size(248, 79);
  			this.objLayerList.TabIndex = 0;
  			this.objLayerList.SelectedIndexChanged += new System.EventHandler(this.objLayerList_SelectedIndexChanged);
  			this.objLayerList.ItemCheck += new System.Windows.Forms.ItemCheckEventHandler(this.objLayerList_ItemCheck);
  			// 
  			// groupLayers
  			// 
  			this.groupLayers.Controls.Add(this.objEditButton);
  			this.groupLayers.Controls.Add(this.objMoveDownButton);
  			this.groupLayers.Controls.Add(this.objMoveUpButton);
  			this.groupLayers.Controls.Add(this.objDeleteButton);
  			this.groupLayers.Controls.Add(this.objNewButton);
  			this.groupLayers.Controls.Add(this.objLayerList);
  			this.groupLayers.Location = new System.Drawing.Point(8, 8);
  			this.groupLayers.Name = "groupLayers";
  			this.groupLayers.Size = new System.Drawing.Size(264, 152);
  			this.groupLayers.TabIndex = 1;
  			this.groupLayers.TabStop = false;
  			this.groupLayers.Text = "Layers";
  			// 
  			// objEditButton
  			// 
  			this.objEditButton.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
  			this.objEditButton.Location = new System.Drawing.Point(56, 112);
  			this.objEditButton.Name = "objEditButton";
  			this.objEditButton.Size = new System.Drawing.Size(40, 24);
  			this.objEditButton.TabIndex = 5;
  			this.objEditButton.Text = "Edit";
  			this.objEditButton.Click += new System.EventHandler(this.objEditButton_Click);
  			// 
  			// objMoveDownButton
  			// 
  			this.objMoveDownButton.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
  			this.objMoveDownButton.Location = new System.Drawing.Point(208, 112);
  			this.objMoveDownButton.Name = "objMoveDownButton";
  			this.objMoveDownButton.Size = new System.Drawing.Size(48, 24);
  			this.objMoveDownButton.TabIndex = 4;
  			this.objMoveDownButton.Text = "Down";
  			this.objMoveDownButton.Click += new System.EventHandler(this.objMoveDownButton_Click);
  			// 
  			// objMoveUpButton
  			// 
  			this.objMoveUpButton.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
  			this.objMoveUpButton.Location = new System.Drawing.Point(152, 112);
  			this.objMoveUpButton.Name = "objMoveUpButton";
  			this.objMoveUpButton.Size = new System.Drawing.Size(48, 24);
  			this.objMoveUpButton.TabIndex = 3;
  			this.objMoveUpButton.Text = "Up";
  			this.objMoveUpButton.Click += new System.EventHandler(this.objMoveUpButton_Click);
  			// 
  			// objDeleteButton
  			// 
  			this.objDeleteButton.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
  			this.objDeleteButton.Location = new System.Drawing.Point(104, 112);
  			this.objDeleteButton.Name = "objDeleteButton";
  			this.objDeleteButton.Size = new System.Drawing.Size(40, 24);
  			this.objDeleteButton.TabIndex = 2;
  			this.objDeleteButton.Text = "Delete";
  			this.objDeleteButton.Click += new System.EventHandler(this.objDeleteButton_Click);
  			// 
  			// objNewButton
  			// 
  			this.objNewButton.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
  			this.objNewButton.Location = new System.Drawing.Point(8, 112);
  			this.objNewButton.Name = "objNewButton";
  			this.objNewButton.Size = new System.Drawing.Size(40, 24);
  			this.objNewButton.TabIndex = 1;
  			this.objNewButton.Text = "New";
  			this.objNewButton.Click += new System.EventHandler(this.objNewButton_Click);
  			// 
  			// groupSettings
  			// 
  			this.groupSettings.Controls.Add(this.objPropLabel);
  			this.groupSettings.Location = new System.Drawing.Point(8, 168);
  			this.groupSettings.Name = "groupSettings";
  			this.groupSettings.Size = new System.Drawing.Size(264, 56);
  			this.groupSettings.TabIndex = 2;
  			this.groupSettings.TabStop = false;
  			this.groupSettings.Text = "Properties";
  			// 
  			// ObjShadowLabel
  			// 
  			this.ObjShadowLabel.Location = new System.Drawing.Point(8, 16);
  			this.ObjShadowLabel.Name = "ObjShadowLabel";
  			this.ObjShadowLabel.Size = new System.Drawing.Size(80, 16);
  			this.ObjShadowLabel.TabIndex = 0;
  			this.ObjShadowLabel.Text = "Shadow Layer:";
  			// 
  			// objShadowLayerList
  			// 
  			this.objShadowLayerList.Location = new System.Drawing.Point(88, 16);
  			this.objShadowLayerList.Name = "objShadowLayerList";
  
gt: 			this.objShadowLayerList.Size = new System.Drawing.Size(168, 21);