Exemplo n.º 1
0
        protected override void SomethingChanged()
        {
            base.SomethingChanged();

            if (LearningFactory.CheckInitialState(Model, out var _))
            {
                OnStepCompleted();
            }
        }
Exemplo n.º 2
0
        public override Message GetErrorDescription()
        {
            var innerMessages = new List <Message>();

            if (!LearningFactory.CheckInitialState(Model, out var errors))
            {
                errors.ForEach(x => innerMessages.Add(new Message {
                    Header = x
                }));
            }

            return(new Message {
                Header = "Установка исходного положения", Messages = innerMessages
            });
        }