Пример #1
0
 public override bool Initialise()
 {
     LastSchema = null;
     Load();
     CurrentSchema = ContentModelSchema.Build();
     if (LastSchema != null)
     {
         ContentRepository.ChangeProblems = LastSchema.FindProblems(CurrentSchema);
         if (ContentRepository.ChangeProblems.Any())
         {
             LyniconUi.Instance.ShowProblemAlert = true;
         }
     }
     return(true);
 }
        public override bool Initialise()
        {
            LastSchema = null;
            Load();
            CurrentSchema = ContentModelSchema.Build();
            if (LastSchema != null)
            {
                ContentRepository.ChangeProblems = LastSchema.FindProblems(CurrentSchema);
                if (ContentRepository.ChangeProblems.Any())
                {
                    LyniconUi.Instance.ShowProblemAlert = true;
                }
            }
            Dump(); // save current schema with reversions for unresolved problems

            return(true);
        }