} /* ValidateModelName*/ private void ValidateFileFormat() { errorProvider1.SetError(FileFormat, null); fileFormat = FileFormat.Text; if (!PicesFeatureFileIO.ValidDriverName(fileFormat)) { errorsFound = true; errorProvider1.SetError(FileFormat, "Format[" + fileFormat + "] is not a valid."); } }
} /* ValidateDestinationDirectory */ private void ValidateFileFormat() { errorProvider1.SetError(FileFormat, ""); fileFormat = FileFormat.Text; if (!PicesFeatureFileIO.ValidDriverName(fileFormat)) { errorsFound = true; errorProvider1.SetError(FileFormat, "Invalid File Format."); return; } driver = new PicesFeatureFileIO(fileFormat); if (!driver.CanWrite) { errorsFound = true; errorProvider1.SetError(FileFormat, "This driver does not support Write."); return; } }