private void buttonOpen_Click(object sender, EventArgs e) { int index = this.listBoxScripts.SelectedIndex; if (index >= 0) OpenScript(this._scripts[index]); }