Beispiel #1
0
        private static ATImportFileLocation editFileLocation(ATImportFileLocation atImportFileLocation)
        {
            ATImportFileLocationDialog atImportFileLocationDialog = new ATImportFileLocationDialog(atImportFileLocation);

            return(atImportFileLocationDialog.ShowDialog() == DialogResult.OK &&
                   !string.IsNullOrWhiteSpace(atImportFileLocationDialog.AtImportFileLocation.FileLocation) ?
                   atImportFileLocationDialog.AtImportFileLocation : null);
        }
Beispiel #2
0
 private static ATImportFileLocation EditFileLocation(ATImportFileLocation atImportFileLocation)
 {
     ATImportFileLocation atifl = null;
     using (ATImportFileLocationDialog atImportFileLocationDialog = new ATImportFileLocationDialog(atImportFileLocation))
     {
         if (atImportFileLocationDialog.ShowDialog() == DialogResult.OK &&
                 !string.IsNullOrWhiteSpace(atImportFileLocationDialog.AtImportFileLocation.FileLocation))
             atifl = atImportFileLocationDialog.AtImportFileLocation;
     }
     return atifl;
 }