private void Repopulate(string newentry) { List <string> copy = fi.CopyPage(); int i = copy.FindIndex(x => x.StartsWith(tag + "¦")); copy[i] = newentry; fi.Recreate(copy); }
private void button1_Click(object sender, EventArgs e) { List <string> copy = fi.CopyPage(); copy.Remove(copy.Find(x => x.StartsWith(tag + "¦"))); fi.Recreate(copy); Close(); }