private string[] FindHashOrgs()
{
bool checkNextLine = false;
string name = "";
List<string> hashOrgs = new List<string>();
foreach (string s in scripts[tabControl1.SelectedIndex].Lines)
{
if (s.StartsWith("#org "))
{
checkNextLine = true;
name = s.Split(' ')[1];
continue;
}
if (checkNextLine)
{
if (!s.StartsWith("="))
{
hashOrgs.Add(name);
}
checkNextLine = false;
}
}
return hashOrgs.ToArray();
}