private void statsToolStripMenuItem_Click(object sender, EventArgs e)
{
// First check if there are statsviews running already...
for(int i = 0; i < nativeInstances.Count; ++i)
{
if (nativeInstances[i].GetType() == typeof(StatsInstance))
{
logView.addMessage("[INFO] StatsView already running!");
return;
}
}
StatsView statsView = new StatsView();
statsView.Show(dockPanel, DockState.DockBottom);
nativeInstances.Add(new StatsInstance(getCurrentEditor().instance.getInstancePtr(), statsView));
}