using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using JavaScript;
namespace JsTest
{
/// <summary>
/// Summary description for frmDIS.
/// </summary>
public class frmDIS : System.Windows.Forms.Form
{
private System.Windows.Forms.RichTextBox txtCode;
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.Container components = null;
public frmDIS()
{
//
// 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.txtCode = new System.Windows.Forms.RichTextBox();
this.SuspendLayout();
//
// txtCode
//
this.txtCode.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.txtCode.Font = new System.Drawing.Font("Tahoma", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
this.txtCode.Location = new System.Drawing.Point(16, 16);
this.txtCode.Name = "txtCode";
this.txtCode.Size = new System.Drawing.Size(416, 472);
this.txtCode.TabIndex = 0;
this.txtCode.Text = "";
//
// frmDIS
//
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
this.ClientSize = new System.Drawing.Size(448, 502);
this.Controls.Add(this.txtCode);
this.Name = "frmDIS";
this.Text = "frmDIS";
this.Load += new System.EventHandler(this.frmDIS_Load);
this.Closed += new System.EventHandler(this.frmDIS_Closed);
this.ResumeLayout(false);
}
#endregion
private void frmDIS_Load(object sender, System.EventArgs e)
{
}
public void SetCode( ExecList list )
{
for ( int x = 0; x < list.Count; x++ )
{
Command cmd = (Command)list[x];
txtCode.AppendText( x + "> " + cmd.ToString() + "\n" );
}
}
private void frmDIS_Closed(object sender, System.EventArgs e)
{
this.Dispose();
}
}
}