/// <summary> /// /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void AddBox_Click(object sender, EventArgs e) { // Empty form AlcoveScriptForm form = new AlcoveScriptForm(null, Dungeon); if (form.ShowDialog() != DialogResult.OK) { return; } // Add new action to the list if (form.Script != null && Scripts != null) { Scripts.Add(form.Script); } UpdateUI(); }
/// <summary> /// /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void AddBox_Click(object sender, EventArgs e) { // Empty form AlcoveScriptForm form = new AlcoveScriptForm(null, Dungeon); if (form.ShowDialog() != DialogResult.OK) return; // Add new action to the list if (form.Script != null && Scripts != null) Scripts.Add(form.Script); UpdateUI(); }