Rock.Apps.CheckScannerUtility.ScanningPage.ScanningPage C# (CSharp) Méthode

ScanningPage() public méthode

Initializes a new instance of the ScanningPage class.
public ScanningPage ( BatchPage value ) : System
value BatchPage The value.
Résultat System
        public ScanningPage( BatchPage value )
        {
            InitializeComponent();
            this.batchPage = value;

            try
            {
                var config = System.Configuration.ConfigurationManager.OpenExeConfiguration(System.Configuration.ConfigurationUserLevel.None);
                DebugLogFilePath = config.AppSettings.Settings["DebugLogFilePath"].Value;
                bool isDirectory = !string.IsNullOrWhiteSpace(DebugLogFilePath) && Directory.Exists( this.DebugLogFilePath );
                if (isDirectory)
                {
                    DebugLogFilePath = Path.Combine( DebugLogFilePath, "CheckScanner.log" );
                }
            }
            catch
            {
                // ignore any exceptions
            }
        }