private void CastLockEvent(int mode)
{
if (onAxisLock != null)
{
switch (mode)
{
case 0: // autoscale
onAxisLock(this, new AxisLockEventArgs(-1, mode, m_map_name, m_filename));
break;
case 1: // peak value
onAxisLock(this, new AxisLockEventArgs(m_MaxValueInTable, mode, m_map_name, m_filename));
break;
case 2: // max value
int max_value = 0xFFFF;
onAxisLock(this, new AxisLockEventArgs(max_value, mode, m_map_name, m_filename));
break;
}
}
else
{
Console.WriteLine("onAxisLock not registered");
}
}