private void findInitialFolder(string basename) { this.baseFolder = basename; DocumentNameFindNumber dnfn = new DocumentNameFindNumber(FolderProbe); this.currNumber = dnfn.GetNextFileName(basename) - 1; }
// return the filename for addNumber collision handling private string getDocumentNameWithNumber(string basename, CMISFolder folder) { DocumentNameFindNumber dnfn = new DocumentNameFindNumber(DNFN_probe); currFolder = folder; int nextNumber = dnfn.GetNextFileName(basename); return(fileNameWithNumber(basename, nextNumber)); }