private void toolStripButton1_Click(object sender, EventArgs e)
{
if (toolStripButton1.Text != "" && toolStripButton1.Text != "No symbol")
{
// find in symbol collection
foreach (SymbolHelper sh in m_symbolcollection)
{
if (sh.Varname == toolStripButton1.Text)
{
int address = (int)sh.Flash_start_address;
if (m_issramviewer)
{
address = (int)sh.Start_address;
}
int length = sh.Length;
while (address > m_currentfile_size) address -= m_currentfile_size;
SelectText(sh.Varname, address, length);
break;
}
}
}
}