public void RemoveFile(string file) { FileWordTable fwt = null; foreach (var tb in tables) { if (tb.FileName == file) { fwt = tb; return; } } tables.Remove(fwt); }
public FileWordTable AddFile(string file) { foreach (var tb in tables) { if (tb.FileName == file) { return(tb); } } var t = new FileWordTable(file); tables.Add(t); return(t); }