private void listBoxScripts_SelectedIndexChanged(object sender, EventArgs e)
{
var item = this.listBoxScripts.SelectedItem;
bool enable = item != null;
this.buttonOpen.Enabled = enable;
this.buttonMoveUp.Enabled = enable;
this.buttonMoveDown.Enabled = enable;
this.buttonDelete.Enabled = enable;
this.textBoxName.Enabled = enable;
this._suppressUpdate = true;
this.textBoxName.Text = enable ? (item as Script).Title : "";
this._suppressUpdate = false;
this.RefreshStatus();
}