Exemplo n.º 1
0
        private void Load(LoadAux function)
        {
            if (string.IsNullOrEmpty(config))
            {
                Log.Error("Configuration filename is null or empty in Project::LoadConfig ");
                return;
            }

            XmlDocument doc = new XmlDocument();

            try {
                doc.Load(config);
                function(doc);
            } catch (Exception e) {
                Log.Error("Error loading configuration file!");
                Log.Error(e.ToString());
            }
        }
Exemplo n.º 2
0
        private void Load( LoadAux function )
        {
            if( string.IsNullOrEmpty( config ) ) {
                Log.Error( "Configuration filename is null or empty in Project::LoadConfig " );
                return;
            }

            XmlDocument doc = new XmlDocument();
            try {
                doc.Load( config );
                function( doc );
            } catch( Exception e ) {
                Log.Error( "Error loading configuration file!" );
                Log.Error( e.ToString() );
            }
        }