private void testUrl( EwfTable table, string url )
 {
     var validator = new Validator();
     validator.GetUrl( new ValidationErrorHandler( "" ), url, false );
     table.AddItem(
         new EwfTableItem(
             url,
             ( !validator.ErrorsOccurred ).BooleanToYesNo( false )
                 .ToCell( new TableCellSetup( classes: ( validator.ErrorsOccurred ? CssClasses.Red : CssClasses.Green ).ToSingleElementArray() ) ) ) );
 }
        private void testUrl(EwfTable table, string url)
        {
            var validator = new Validator();

            validator.GetUrl(new ValidationErrorHandler(""), url, false);
            table.AddItem(
                new EwfTableItem(
                    url,
                    (!validator.ErrorsOccurred).ToYesOrEmpty()
                    .ToCell(new TableCellSetup(classes: (validator.ErrorsOccurred ? CssClasses.Red : CssClasses.Green).ToCollection()))));
        }
        private void testUrl(EwfTable table, string url)
        {
            var validator = new Validator();

            validator.GetUrl(new ValidationErrorHandler(""), url, false);
            table.AddItem(
                new EwfTableItem(
                    url,
                    (!validator.ErrorsOccurred).BooleanToYesNo(false)
                    .ToCell(new TableCellSetup(classes: (validator.ErrorsOccurred ? CssClasses.Red : CssClasses.Green).ToSingleElementArray()))));
        }
Exemplo n.º 4
0
        private void testUrl(EwfTable <int> table, string url)
        {
            var validator = new Validator();

            validator.GetUrl(new ValidationErrorHandler(""), url, false);
            table.AddItem(
                EwfTableItem.Create(
                    url.ToCell(),
                    (!validator.ErrorsOccurred).ToYesOrEmpty()
                    .ToCell(new TableCellSetup(classes: validator.ErrorsOccurred ? ElementClasses.Red : ElementClasses.Green))));
        }