}           //  GetLastLoadDatefromFeatureClass

        public System.DateTime GetFeatureClassSourceLastUpdateDate(string FeatureClassName, string OutputGeodatabaseName)
        {
            PDX.BTS.DataMaintenance.MaintTools.FeatureClassSourceInfo currentFeatureClassSourceInfo = null;
            PDX.BTS.DataMaintenance.MaintTools.PathManager            featureClassPathManager       = null;
            PDX.BTS.DataMaintenance.MaintTools.FeatureClassUtilities  featureClassUtilities         = null;

            try
            {
                //  Determine the Source Information for the specified Feature Class.
                currentFeatureClassSourceInfo = GetLayerSourceInfo(FeatureClassName, OutputGeodatabaseName);

                //  Make sure the Source Info was retrieved successfully before moving on.
                if (currentFeatureClassSourceInfo == null)
                {
                    //  Let the User know that the Information was not retrieved successfully.
                    if (ErrorMessage != null)
                    {
                        ErrorMessage("Failed to retrieve the Source Information for the " + FeatureClassName + " Feature Class.  The GetFeatureClassSourceUpdateDate() Method Failed!");
                    }

                    //  Return a date of "1/1/1900" to the calling method to indicate that this method failed.
                    return(System.DateTime.Parse("1/1/1900 00:00:00.000"));
                }


                //  Instantiate the Feature Class Path Manager Object that will be used, where necessary, to determine the path to the specified
                //  Source Dataset.
                featureClassPathManager = new PDX.BTS.DataMaintenance.MaintTools.PathManager();


                //  Instantiate the Feature Class Utilities Object that will be used to determine the Source Feature Class Last Update Date for the
                //  specified Feature Class.
                featureClassUtilities = new PDX.BTS.DataMaintenance.MaintTools.FeatureClassUtilities();


                //  Determine the Last Update Date of the Source Dataset for the specified Feature Class.
                switch (currentFeatureClassSourceInfo.SourceType.ToUpper())
                {
                case "SHAPEFILE":
                    //  Determine the Path to the Source Shapefile for the specified Feature Class.
                    string sourceShapefilePath = featureClassPathManager.BuildShapefilePath(currentFeatureClassSourceInfo.SourceDataShare, currentFeatureClassSourceInfo.SourceDataset, currentFeatureClassSourceInfo.SourceFeatureClassName);
                    //  Determine the Last Update of the Source Shapefile.
                    return(featureClassUtilities.GetShapefileLastUpdateDate(sourceShapefilePath));

                case "PERSONALGEODB":
                    //  Determine the Last Update Date for the Source Personal Geodatabase Feature Class for the specified Output Feature Class.
                    return(featureClassUtilities.GetPersonalGeoDBLastUpdateDate(currentFeatureClassSourceInfo.SourceGeoDBFile));

                case "FILEGEODB":
                    //  Determine the Last Update Date for the Source File Geodatabase Feature Class for the specified Output Feature Class.
                    return(featureClassUtilities.GetFileGeodatabaseLastUpdate(currentFeatureClassSourceInfo.SourceGeoDBFile));

                case "GEODATABASE":
                    //  Determine the Last Update Date for the Source Enterprise Geodatabasde Feature Class for the specified Output Feature Class.
                    return(featureClassUtilities.GetEntGeoDBFeatureClassLastUpdate(currentFeatureClassSourceInfo.SourceFeatureClassName, currentFeatureClassSourceInfo.SourceServerName, currentFeatureClassSourceInfo.SourceDatabaseName, currentFeatureClassSourceInfo.SourceDatabaseUser));

                default:
                    //  Return a date of "!/1/1900" to the calling method to indicate that the date could not be determined.
                    return(System.DateTime.Parse("1/1/1900 00:00:00.000"));
                }
            }
            catch (System.Exception caught)
            {
                //  Let the user know that this process failed.
                if (ErrorMessage != null)
                {
                    ErrorMessage("");
                    ErrorMessage("");
                    ErrorMessage("The FeatureClassUtilities.GetFeatureClassSourceLastUpdateDate() Method failed with error message - " + caught.Message + "!");
                }

                //  Return January 1st, 1900 to the calling routine to indicate that this process failed.
                return(new System.DateTime(1900, 1, 1));
            }
            finally
            {
                //  If the CGIS Data Maintenance Tools Feature Class Utilities Object was instantiated, close it.
                if (featureClassUtilities != null)
                {
                    featureClassUtilities.Dispose();
                    featureClassUtilities = null;
                }
                //  If the CGIS Data Maintenance Tools Feature Class Path Manager Object was instantiated, close it.
                if (featureClassPathManager != null)
                {
                    featureClassPathManager = null;
                }
            }
        } //  GetFeatureClassSourceLastUpdateDate()
        public System.DateTime GetFeatureClassSourceLastUpdateDate(string FeatureClassName, string OutputGeodatabaseName)
        {
            PDX.BTS.DataMaintenance.MaintTools.FeatureClassSourceInfo currentFeatureClassSourceInfo = null;
              PDX.BTS.DataMaintenance.MaintTools.PathManager            featureClassPathManager       = null;
              PDX.BTS.DataMaintenance.MaintTools.FeatureClassUtilities  featureClassUtilities         = null;

              try
              {
            //  Determine the Source Information for the specified Feature Class.
            currentFeatureClassSourceInfo = GetLayerSourceInfo(FeatureClassName, OutputGeodatabaseName);

            //  Make sure the Source Info was retrieved successfully before moving on.
            if (currentFeatureClassSourceInfo == null)
            {
              //  Let the User know that the Information was not retrieved successfully.
              if (ErrorMessage != null)
              {
            ErrorMessage("Failed to retrieve the Source Information for the " + FeatureClassName + " Feature Class.  The GetFeatureClassSourceUpdateDate() Method Failed!");
              }

              //  Return a date of "1/1/1900" to the calling method to indicate that this method failed.
              return System.DateTime.Parse("1/1/1900 00:00:00.000");

            }

            //  Instantiate the Feature Class Path Manager Object that will be used, where necessary, to determine the path to the specified
            //  Source Dataset.
            featureClassPathManager = new PDX.BTS.DataMaintenance.MaintTools.PathManager();

            //  Instantiate the Feature Class Utilities Object that will be used to determine the Source Feature Class Last Update Date for the
            //  specified Feature Class.
            featureClassUtilities = new PDX.BTS.DataMaintenance.MaintTools.FeatureClassUtilities();

            //  Determine the Last Update Date of the Source Dataset for the specified Feature Class.
            switch (currentFeatureClassSourceInfo.SourceType.ToUpper())
            {
              case "SHAPEFILE":
            //  Determine the Path to the Source Shapefile for the specified Feature Class.
            string sourceShapefilePath = featureClassPathManager.BuildShapefilePath(currentFeatureClassSourceInfo.SourceDataShare, currentFeatureClassSourceInfo.SourceDataset, currentFeatureClassSourceInfo.SourceFeatureClassName);
            //  Determine the Last Update of the Source Shapefile.
            return featureClassUtilities.GetShapefileLastUpdateDate(sourceShapefilePath);
              case "PERSONALGEODB":
            //  Determine the Last Update Date for the Source Personal Geodatabase Feature Class for the specified Output Feature Class.
            return featureClassUtilities.GetPersonalGeoDBLastUpdateDate(currentFeatureClassSourceInfo.SourceGeoDBFile);
              case "FILEGEODB":
            //  Determine the Last Update Date for the Source File Geodatabase Feature Class for the specified Output Feature Class.
            return featureClassUtilities.GetFileGeodatabaseLastUpdate(currentFeatureClassSourceInfo.SourceGeoDBFile);
              case "GEODATABASE":
            //  Determine the Last Update Date for the Source Enterprise Geodatabasde Feature Class for the specified Output Feature Class.
            return featureClassUtilities.GetEntGeoDBFeatureClassLastUpdate(currentFeatureClassSourceInfo.SourceFeatureClassName, currentFeatureClassSourceInfo.SourceServerName, currentFeatureClassSourceInfo.SourceDatabaseName, currentFeatureClassSourceInfo.SourceDatabaseUser);
              default:
            //  Return a date of "!/1/1900" to the calling method to indicate that the date could not be determined.
            return System.DateTime.Parse("1/1/1900 00:00:00.000");
            }

              }
              catch (System.Exception caught)
              {
            //  Let the user know that this process failed.
            if (ErrorMessage != null)
            {
              ErrorMessage("");
              ErrorMessage("");
              ErrorMessage("The FeatureClassUtilities.GetFeatureClassSourceLastUpdateDate() Method failed with error message - " + caught.Message + "!");
            }

            //  Return January 1st, 1900 to the calling routine to indicate that this process failed.
            return new System.DateTime(1900, 1, 1);

              }
              finally
              {
            //  If the CGIS Data Maintenance Tools Feature Class Utilities Object was instantiated, close it.
            if (featureClassUtilities != null)
            {
              featureClassUtilities.Dispose();
              featureClassUtilities = null;
            }
            //  If the CGIS Data Maintenance Tools Feature Class Path Manager Object was instantiated, close it.
            if (featureClassPathManager != null)
            {
              featureClassPathManager = null;
            }

              }
        }