Recovered from cvs revision 2007-08-16 15:19:00
This commit is contained in:
4
ase/test/net/AwkForm.Designer.cs
generated
4
ase/test/net/AwkForm.Designer.cs
generated
@ -65,6 +65,7 @@ namespace asetestnet
|
||||
// tbxSourceInput
|
||||
//
|
||||
this.tbxSourceInput.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.tbxSourceInput.Font = new System.Drawing.Font("Courier New", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.tbxSourceInput.Location = new System.Drawing.Point(0, 19);
|
||||
this.tbxSourceInput.Multiline = true;
|
||||
this.tbxSourceInput.Name = "tbxSourceInput";
|
||||
@ -136,6 +137,7 @@ namespace asetestnet
|
||||
// tbxSourceOutput
|
||||
//
|
||||
this.tbxSourceOutput.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.tbxSourceOutput.Font = new System.Drawing.Font("Courier New", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.tbxSourceOutput.Location = new System.Drawing.Point(0, 19);
|
||||
this.tbxSourceOutput.Multiline = true;
|
||||
this.tbxSourceOutput.Name = "tbxSourceOutput";
|
||||
@ -169,6 +171,7 @@ namespace asetestnet
|
||||
// tbxConsoleInput
|
||||
//
|
||||
this.tbxConsoleInput.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.tbxConsoleInput.Font = new System.Drawing.Font("Courier New", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.tbxConsoleInput.Location = new System.Drawing.Point(0, 19);
|
||||
this.tbxConsoleInput.Multiline = true;
|
||||
this.tbxConsoleInput.Name = "tbxConsoleInput";
|
||||
@ -201,6 +204,7 @@ namespace asetestnet
|
||||
// tbxConsoleOutput
|
||||
//
|
||||
this.tbxConsoleOutput.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.tbxConsoleOutput.Font = new System.Drawing.Font("Courier New", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.tbxConsoleOutput.Location = new System.Drawing.Point(0, 19);
|
||||
this.tbxConsoleOutput.Multiline = true;
|
||||
this.tbxConsoleOutput.Name = "tbxConsoleOutput";
|
||||
|
@ -18,45 +18,48 @@ namespace asetestnet
|
||||
|
||||
private void btnRun_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
//using (Awk awk = new Awk())
|
||||
{
|
||||
Awk awk = new Awk();
|
||||
tbxSourceOutput.Text = "";
|
||||
tbxConsoleOutput.Text = "";
|
||||
|
||||
tbxSourceOutput.Text = "";
|
||||
tbxConsoleOutput.Text = "";
|
||||
|
||||
if (!awk.Parse(tbxSourceInput, tbxSourceOutput))
|
||||
{
|
||||
//MessageBox.Show(awk.ErrorMessage);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
/*
|
||||
awk.EntryPoint = cbxEntryPoint.Text;
|
||||
awk.ArgumentsToEntryPoint = chkPassArgumentsToEntryPoint.Checked;*/
|
||||
|
||||
bool n;
|
||||
/*int nargs = lbxArguments.Items.Count;
|
||||
if (nargs > 0)
|
||||
{
|
||||
string[] args = new string[nargs];
|
||||
for (int i = 0; i < nargs; i++)
|
||||
args[i] = lbxArguments.Items[i].ToString();
|
||||
n = awk.Run(args);
|
||||
}
|
||||
else*/ n = awk.Run(tbxConsoleInput, tbxConsoleOutput);
|
||||
|
||||
if (!n)
|
||||
if (!awk.Parse(tbxSourceInput, tbxSourceOutput))
|
||||
{
|
||||
MessageBox.Show("Parse error");
|
||||
//MessageBox.Show(awk.ErrorMessage);
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
|
||||
/*
|
||||
awk.EntryPoint = cbxEntryPoint.Text;
|
||||
awk.ArgumentsToEntryPoint = chkPassArgumentsToEntryPoint.Checked;*/
|
||||
|
||||
bool n;
|
||||
/*int nargs = lbxArguments.Items.Count;
|
||||
if (nargs > 0)
|
||||
{
|
||||
string[] args = new string[nargs];
|
||||
for (int i = 0; i < nargs; i++)
|
||||
args[i] = lbxArguments.Items[i].ToString();
|
||||
n = awk.Run(args);
|
||||
}
|
||||
else*/
|
||||
n = awk.Run(tbxConsoleInput, tbxConsoleOutput);
|
||||
|
||||
if (!n)
|
||||
{
|
||||
//MessageBox.Show(awk.ErrorMessage);
|
||||
MessageBox.Show("Run Error");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
awk.Close();
|
||||
}
|
||||
|
||||
//awk.Close();
|
||||
|
||||
//awk.Dispose();
|
||||
}
|
||||
|
||||
|
||||
private void btnAddArgument_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
Reference in New Issue
Block a user