//--------------------------------------------------------------------------------------------------------------------------------------------------- // // Copyright (C)2007 DarkWynter Studios. All rights reserved. // //--------------------------------------------------------------------------------------------------------------------------------------------------- // {Contact : darkwynter.com for licensing information //--------------------------------------------------------------------------------------------------------------------------------------------------- using System; using System.Collections.Generic; using System.Text; using System.Windows.Forms; namespace DarkWynter.App { public class InstancesPanel : Panel { /// /// Instances Panel /// //private System.Windows.Forms.Panel panelInstances; private System.Windows.Forms.Label labelInstances; private System.Windows.Forms.ListBox listBoxInstances; private System.Windows.Forms.Button buttonCreateInstance; public InstancesPanel() { this.labelInstances = new System.Windows.Forms.Label(); this.listBoxInstances = new System.Windows.Forms.ListBox(); this.buttonCreateInstance = new System.Windows.Forms.Button(); this.SuspendLayout(); #region Instances // // labelInstances // this.labelInstances.AutoSize = true; this.labelInstances.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.labelInstances.Location = new System.Drawing.Point(6, 10); this.labelInstances.Name = "labelInstances"; this.labelInstances.Size = new System.Drawing.Size(70, 20); this.labelInstances.TabIndex = 13; this.labelInstances.Text = "Objects"; // // listBoxInstances // this.listBoxInstances.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.listBoxInstances.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.listBoxInstances.ForeColor = System.Drawing.Color.Maroon; this.listBoxInstances.FormattingEnabled = true; this.listBoxInstances.Location = new System.Drawing.Point(12, 38); this.listBoxInstances.Name = "listBoxInstances"; this.listBoxInstances.Size = new System.Drawing.Size(245, 95); this.listBoxInstances.TabIndex = 0; // // buttonCreateInstance // this.buttonCreateInstance.BackColor = System.Drawing.Color.Lime; this.buttonCreateInstance.ForeColor = System.Drawing.SystemColors.ControlText; this.buttonCreateInstance.Location = new System.Drawing.Point(139, 10); this.buttonCreateInstance.Name = "buttonCreateInstance"; this.buttonCreateInstance.Size = new System.Drawing.Size(115, 22); this.buttonCreateInstance.TabIndex = 14; this.buttonCreateInstance.Text = "Create Instance"; this.buttonCreateInstance.UseVisualStyleBackColor = false; this.buttonCreateInstance.Click += new System.EventHandler(this.buttonAddInstance_Click); #endregion // // panelInstances // this.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; this.Location = new System.Drawing.Point(0, 0); this.Name = "panelInstances"; this.Size = new System.Drawing.Size(300, 200); this.TabIndex = 15; this.Controls.Add(this.labelInstances); this.Controls.Add(this.buttonCreateInstance); this.Controls.Add(this.listBoxInstances); this.ResumeLayout(false); this.PerformLayout(); } private void buttonAddInstance_Click(object sender, EventArgs e) { // Bring up LocationMap panel. // Set color used for this object. // Add an instanceNode to the instanced list } } }