private void lstClasses_SelectedIndexChanged(object sender, EventArgs e)
{
this.txtText.Text = string.Empty;
this.lstMethods.Items.Clear();
if (this.lstClasses.SelectedItem == null)
return;
string clsname = (string)this.lstClasses.SelectedItem;
this.currentClass = (IClass)this.machine.GetGlobalObject(clsname);
foreach (IMethod method in this.currentClass.GetInstanceMethods())
this.lstMethods.Items.Add(method.Name);
if (this.currentClass is BaseClass)
this.txtText.Text = ((BaseClass)this.currentClass).ToDefineString();
}