// Delete event private void button_delete_event_Click(object sender, EventArgs e) { Form parent = this.ParentForm; NPCEditor editor = parent as NPCEditor; uint id = editor.Id; db_scripts.scriptList[id].line.RemoveAt(eventid); editor.Redraw(id); }
public void ShowNewForm(uint id) { NPCEditor childForm = new NPCEditor(id, comboBox_script_type.SelectedIndex == 0, comboBox_script_type.SelectedItem.ToString().ToLower()); childForm.MdiParent = this; if (comboBox_script_type.SelectedIndex == 0) childForm.Text = "NPC: " + id; else childForm.Text = "SCRIPT: " + id; childForm.Show(); }
public void ShowNewForm(uint id) { NPCEditor childForm = new NPCEditor(id, comboBox_script_type.SelectedIndex == 0, comboBox_script_type.SelectedItem.ToString().ToLower()); childForm.MdiParent = this; if (comboBox_script_type.SelectedIndex == 0) { childForm.Text = "NPC: " + id; } else { childForm.Text = "SCRIPT: " + id; } childForm.Show(); }