private bool DebugWrittenScript()
{
toolStripStatusLabel1.Text = "Looking for strings...";
FindStrings();
toolStripStatusLabel1.Text = "Checking Commands...";
bool result = DebugCommands();
if (result)
{
toolStripStatusLabel1.Text = "Checking number of parameters...";
result = DebugNumberOfParameters();
if (result)
{
toolStripStatusLabel1.Text = "Checking Parameter Content...";
result = DebugParameters();
if (result)
{
toolStripStatusLabel1.Text = "Checking Dynamic Pointers...";
result = DebugDynamicPointerNames();
if (result)
{
toolStripStatusLabel1.Text = "Done!";
}
else
{
toolStripStatusLabel1.Text = "Invalid Dynamic Pointer(s) Detected!";
}
}
else
{
toolStripStatusLabel1.Text = "Invalid Parameter Contents Detected!";
}
}
else
{
toolStripStatusLabel1.Text = "Invalid Number of Parameters Detected!";
}
}
else
{
toolStripStatusLabel1.Text = "Invalid Commands Detected!";
}
dynamicStrings.Clear();
userDefinitions.Clear();
dynamicLocationSet = false;
return result;
}