private void Apply_Click(object sender, EventArgs e)
{
mIsUpdateTextDirty = true;
if (ResetOnApplyCheckBox.Checked)
{
ResetClick(null, null);
}
mClassLevelCodeContext = new CodeContext(null);
try
{
ApplyRichTextBoxScript(ClassScopeTextBox);
}
catch
{
MessageBox.Show("Error parsing Class Scope script");
}
try
{
mClassLevelCodeContext.AddVariableStack();
ApplyRichTextBoxScript(InitializeTextBox);
mClassLevelCodeContext.RemoveVariableStack();
}
catch
{
MessageBox.Show("Error parsing Initialize script");
}
}