예제 #1
0
        public void RemoveFile(string file)
        {
            FileWordTable fwt = null;

            foreach (var tb in tables)
            {
                if (tb.FileName == file)
                {
                    fwt = tb;
                    return;
                }
            }
            tables.Remove(fwt);
        }
예제 #2
0
        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);
        }