private void editButton_Click(object sender, EventArgs e)
 {
     if (this.appsList.SelectedItem == null)
     {
         MessageBox.Show(this, "Please select an app to edit", "Oops!", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
     }
     else
     {
         var editForm = new AddEditApp(this.appsList.SelectedItem.ToString(), this._javaScriptAppBuilderManager);
         editForm.Text = "Edit JavaScript Application";
         editForm.ShowDialog(this);
     }
 }
        private void addButton_Click(object sender, EventArgs e)
        {
            var addForm = new AddEditApp(this._javaScriptAppBuilderManager, x => this.appsList.Items.Add(x));

            addForm.ShowDialog(this);
        }