pascalabcnet/VisualPlugins/TestPlugin/TestForm.cs
Бондарев Иван e6e67c193c initial commit
2015-05-14 21:35:07 +02:00

45 lines
1.3 KiB
C#

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using PascalABCCompiler.Errors;
using System.IO;
namespace VisualPascalABCPlugins
{
public partial class TestForm : Form
{
public IVisualEnvironmentCompiler VisualEnvironmentCompiler;
public TestForm()
{
InitializeComponent();
PascalABCCompiler.StringResources.SetTextForAllObjects(this, TestPlugin_VisualPascalABCPlugin.StringsPrefix);
}
private void SyntaxTreeVisualisatorForm_Load(object sender, EventArgs e)
{
}
private void SyntaxTreeVisualisatorForm_FormClosing(object sender, FormClosingEventArgs e)
{
e.Cancel = true;
this.Visible = false;
}
private void SyntaxTreeVisualisatorForm_Shown(object sender, EventArgs e)
{
VisualEnvironmentCompiler.Compiler.OnChangeCompilerState += new PascalABCCompiler.ChangeCompilerStateEventDelegate(Compiler_OnChangeCompilerState);
}
void Compiler_OnChangeCompilerState(PascalABCCompiler.ICompiler sender, PascalABCCompiler.CompilerState State, string FileName)
{
//compiler states
}
}
}