} /* 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.");
            }
        }
Ejemplo n.º 2
0
        } /* 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;
            }
        }