public void ProcessIdle()
{
if (_plugin == null) return;
_plugin.idleCount++;
// Act on the presets loaded flag.
if (_plugin.presetsLoaded == true)
{
FillList();
_plugin.presetsLoaded = false;
if (_plugin.olderpresetswarning)
{
MessageBox.Show(this, "This map set was created with an older version of the plugin.\n\nPlease check your maps and options.", "MIDIMapperX", MessageBoxButtons.OK, MessageBoxIcon.Warning);
SwitchToEditMode();
_plugin.olderpresetswarning = false;
}
}
// Debug info
if (DebugLabel.Visible)
{
DebugLabel.Text = "Mode: " + _plugin.CurrentMode.ToString() + "\n" +
"Idle: " + _plugin.idleCount + "\n" +
"Calls: " + _plugin.callCount + "\n" +
"Events: " + _plugin.eventCount + "\n" +
"MIDI: " + _plugin.midiCount + "\n" +
"Hits: " + _plugin.hitCount + "\n" +
"Last Edit: [" + lastedit + "]\n" +
"Last Output: [" + MapNoteItem.lastOutputString + "]";
}
}