ArrayPropertyConvention

Namespace: MvcContrib
We found 10 examples in language CSharp for this search. You will see 18 fragments of code.

Other methods

		public static bool HasDeleteButton(this TypeViewModel model)
		{
			return !(model.AdditionalValues.ContainsKey(ArrayPropertyConvention.HIDE_DELETE_BUTTON) && (bool)model.AdditionalValues[ArrayPropertyConvention.HIDE_DELETE_BUTTON]);
		
		}
		public static bool HasAddButton(this TypeViewModel model)
		{
			return !(model.AdditionalValues.ContainsKey(ArrayPropertyConvention.HIDE_ADD_BUTTON) && (bool)model.AdditionalValues[ArrayPropertyConvention.HIDE_ADD_BUTTON]);

		}

        public static bool HasDeleteButton(this TypeViewModel model)
        {
            return
                !(model.AdditionalValues.ContainsKey(ArrayPropertyConvention.HIDE_DELETE_BUTTON) &&
                  (bool) model.AdditionalValues[ArrayPropertyConvention.HIDE_DELETE_BUTTON]);
        }

        public static bool HasAddButton(this TypeViewModel model)
        {
            return
                !(model.AdditionalValues.ContainsKey(ArrayPropertyConvention.HIDE_ADD_BUTTON) &&
                  (bool) model.AdditionalValues[ArrayPropertyConvention.HIDE_ADD_BUTTON]);
        }

		public static bool HasDeleteButton(this TypeViewModel model)
		{
			return !(model.AdditionalValues.ContainsKey(ArrayPropertyConvention.HIDE_DELETE_BUTTON) && (bool)model.AdditionalValues[ArrayPropertyConvention.HIDE_DELETE_BUTTON]);
		
		}
		public static bool HasAddButton(this TypeViewModel model)
		{
			return !(model.AdditionalValues.ContainsKey(ArrayPropertyConvention.HIDE_ADD_BUTTON) && (bool)model.AdditionalValues[ArrayPropertyConvention.HIDE_ADD_BUTTON]);

		}

		public static bool HasDeleteButton(this TypeViewModel model)
		{
			return !(model.AdditionalValues.ContainsKey(ArrayPropertyConvention.HIDE_DELETE_BUTTON) && (bool)model.AdditionalValues[ArrayPropertyConvention.HIDE_DELETE_BUTTON]);
		
		}
		public static bool HasAddButton(this TypeViewModel model)
		{
			return !(model.AdditionalValues.ContainsKey(ArrayPropertyConvention.HIDE_ADD_BUTTON) && (bool)model.AdditionalValues[ArrayPropertyConvention.HIDE_ADD_BUTTON]);

		}

		public static bool HasDeleteButton(this TypeViewModel model)
		{
			return !(model.AdditionalValues.ContainsKey(ArrayPropertyConvention.HIDE_DELETE_BUTTON) && (bool)model.AdditionalValues[ArrayPropertyConvention.HIDE_DELETE_BUTTON]);
		
		}
		public static bool HasAddButton(this TypeViewModel model)
		{
			return !(model.AdditionalValues.ContainsKey(ArrayPropertyConvention.HIDE_ADD_BUTTON) && (bool)model.AdditionalValues[ArrayPropertyConvention.HIDE_ADD_BUTTON]);

		}

		public static bool HasDeleteButton(this TypeViewModel model)
		{
			return !(model.AdditionalValues.ContainsKey(ArrayPropertyConvention.HIDE_DELETE_BUTTON) && (bool)model.AdditionalValues[ArrayPropertyConvention.HIDE_DELETE_BUTTON]);
		
		}
		public static bool HasAddButton(this TypeViewModel model)
		{
			return !(model.AdditionalValues.ContainsKey(ArrayPropertyConvention.HIDE_ADD_BUTTON) && (bool)model.AdditionalValues[ArrayPropertyConvention.HIDE_ADD_BUTTON]);

		}

		public static bool HasDeleteButton(this TypeViewModel model)
		{
			return !(model.AdditionalValues.ContainsKey(ArrayPropertyConvention.HIDE_DELETE_BUTTON) && (bool)model.AdditionalValues[ArrayPropertyConvention.HIDE_DELETE_BUTTON]);
		
		}
		public static bool HasAddButton(this TypeViewModel model)
		{
			return !(model.AdditionalValues.ContainsKey(ArrayPropertyConvention.HIDE_ADD_BUTTON) && (bool)model.AdditionalValues[ArrayPropertyConvention.HIDE_ADD_BUTTON]);

		}

		public static bool HasDeleteButton(this TypeViewModel model)
		{
			return !(model.AdditionalValues.ContainsKey(ArrayPropertyConvention.HIDE_DELETE_BUTTON) && (bool)model.AdditionalValues[ArrayPropertyConvention.HIDE_DELETE_BUTTON]);
		
		}
		public static bool HasAddButton(this TypeViewModel model)
		{
			return !(model.AdditionalValues.ContainsKey(ArrayPropertyConvention.HIDE_ADD_BUTTON) && (bool)model.AdditionalValues[ArrayPropertyConvention.HIDE_ADD_BUTTON]);

		}

using System.Collections.Generic;
using MvcContrib.UI.InputBuilder.Conventions;

namespace MvcContrib.UI.InputBuilder
{
	public class DefaultPropertyConventionsFactory : List<IPropertyViewModelFactory>
	{
		public DefaultPropertyConventionsFactory()
		{
			Add(new ArrayPropertyConvention());
			Add(new GuidPropertyConvention());
			Add(new EnumPropertyConvention());
			Add(new DateTimePropertyConvention());
			Add(new DefaultPropertyConvention());
		}
	}
}

using System.Collections.Generic;
using MvcContrib.UI.InputBuilder.Conventions;

namespace MvcContrib.UI.InputBuilder
{
	public class DefaultPropertyConventionsFactory : List<IPropertyViewModelFactory>
	{
		public DefaultPropertyConventionsFactory()
		{
			Add(new ArrayPropertyConvention());
			Add(new GuidPropertyConvention());
			Add(new EnumPropertyConvention());
			Add(new DateTimePropertyConvention());
			Add(new DefaultProperyConvention());
		}
	}
}

Other methods