public void Delete(string name) { EventRemove?.Invoke(GetEvent(name)); if (Directory.Exists(GetEventPath() + name)) { Directory.Delete(GetEventPath() + name, true); } _EventChains.RemoveAll(ev => ev.Name.ToLower().Equals(name)); }
/// <summary> /// Remove the displayed old game from the DB. /// </summary> private void ButtonRemove_Click(object sender, EventArgs e) { EventRemove?.Invoke(); }