private void buttonInsert_Click(object sender, EventArgs e)
{
int index = this.listBoxScripts.SelectedIndex;
if (index < 0)
index = Project.ScriptManager.Scripts.Count;
var script = new Script();
this._scripts.Insert(index, script);
this.listBoxScripts.SelectedIndex = index;
this.buttonOpen_Click(null, null);
Project.ScriptManager.RefreshScriptIndices();
}