protected virtual bool SelectFileCompleted()
        {
            if (string.IsNullOrEmpty(this.Filename.Value))
            {
                SheerResponse.Alert(EcmTexts.Localize("Select a file to attach.", new object[0]), new string[0]);
                return(false);
            }
            string filename = FileUtil.MapPath("/temp/" + FileUtil.GetFileName(this.Filename.Value));

            if (!FileUtil.FileExists(filename))
            {
                SheerResponse.Alert(EcmTexts.Localize("The '{0}' file does not exist.", new object[] { filename }), new string[0]);
                return(false);
            }
            if (!filename.Equals(this.LastFile))
            {
                using (CSVFile file = new CSVFile(filename))
                {
                    List <string> list = file.ReadLine();
                    this.FieldList = list;
                    this.LastFile  = filename;
                    this.InitializeFields();
                }
            }
            return(true);
        }