示例#1
0
        public void Hide([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.Hide();
        }
示例#2
0
        public void Hide([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.Hide();
        }