public void ValidateField(IBoundScreenElement element, object model)
        {
            Assert.ArgumentNotNull(element, nameof(element));

            NotificationMessage[] messages = element.Validate();

            ShowMessagesCore(element, messages);
        }
Beispiel #2
0
        public void ShowErrorMessages(IBoundScreenElement element,
                                      params string[] messages)
        {
            Assert.ArgumentNotNull(element, nameof(element));
            Assert.ArgumentNotNull(messages, nameof(messages));

            _monitor.ShowErrorMessages(element, messages);
        }
Beispiel #3
0
        public void Show([NotNull] Expression <Func <M, object> > expression)
        {
            string fieldName = ReflectionHelper.GetProperty(expression).Name;

            IBoundScreenElement element = FindElementByField(fieldName);

            Assert.NotNull(element, "element not found for {0}", fieldName);

            element.Show();
        }
Beispiel #4
0
        public void Validate(IBoundScreenElement element)
        {
            Assert.ArgumentNotNull(element, nameof(element));

            if (Model == null)
            {
                return;
            }

            _monitor.ValidateField(element, Model);
        }
Beispiel #5
0
        public void Show([NotNull] string propertyName)
        {
            Assert.ArgumentNotNullOrEmpty(propertyName, nameof(propertyName));

            string fieldName = ReflectionUtils.GetProperty <M>(propertyName).Name;

            IBoundScreenElement element = FindElementByField(fieldName);

            Assert.NotNull(element, "element not found for {0}", propertyName);

            element.Show();
        }
Beispiel #6
0
 public void Validate(IBoundScreenElement element)
 {
 }
Beispiel #7
0
 public void ShowErrorMessages(IBoundScreenElement element,
                               params string[] messages)
 {
 }
Beispiel #8
0
 public void ValidateField(IBoundScreenElement element, object model)
 {
 }