private void deleteevent_Click(object sender, EventArgs e) { Form blaa = this.ParentForm; NPCEditor bla = blaa as NPCEditor; uint creature_id = bla.Id; creatures.npcList[creature_id].line.RemoveAt(eventid); bla.Redraw(creature_id); }