public int Add(AMSFileInfo FileInfo) { if(this.Count < this.AMSFiles.Length) { this.AMSFiles[this.Count].FileName = FileInfo.FileName; this.AMSFiles[this.Count].FilePath = FileInfo.FilePath; this.Count++; return this.Count-1; } return -1; }
public AMSFileInfo(AMSFileInfo fi) { this.FileName = fi.FileName; this.FilePath = fi.FilePath; }