Editor.MainViewBase.statsToolStripMenuItem_Click C# (CSharp) Method

statsToolStripMenuItem_Click() private method

private statsToolStripMenuItem_Click ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void
        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));
        }