Beispiel #1
0
        public static ExternalHistory Load(string path)
        {
            ExternalHistory externalHistory = null;

            try
            {
                externalHistory = new ExternalHistory();
                Scribe.loader.InitLoading(path);
                try
                {
                    Scribe_Deep.Look(ref externalHistory, "externalHistory");
                    Scribe.loader.FinalizeLoading();
                    return(externalHistory);
                }
                catch
                {
                    Scribe.ForceStop();
                    throw;
                }
            }
            catch (Exception ex)
            {
                Log.Error("Could not load external history (" + path + "): " + ex.Message);
                return(null);
            }
        }
        public static ExternalHistory Load(string path)
        {
            ExternalHistory result = null;

            try
            {
                result = new ExternalHistory();
                Scribe.loader.InitLoading(path);
                try
                {
                    Scribe_Deep.Look <ExternalHistory>(ref result, "externalHistory", new object[0]);
                    Scribe.loader.FinalizeLoading();
                }
                catch
                {
                    Scribe.ForceStop();
                    throw;
                }
            }
            catch (Exception ex)
            {
                Log.Error("Could not load external history (" + path + "): " + ex.Message);
                return(null);
            }
            return(result);
        }