private void _init(Controller2Garin controller, string title, string placeholder, EnumHtmlType htmlType, bool isRequired, bool needTranslate, bool isMultiple, string propertyName, int priority, List <string> Default, EnumFilterCompare compare = EnumFilterCompare.Equals, string format = null) { Controller = controller; Logger = controller.LoggerFactory.CreateLogger(GetType().FullName); HtmlType = htmlType; PropertyName = propertyName; Priority = priority; IsRequired = isRequired; NeedTranslate = needTranslate; IsMultiple = isMultiple; Title = title; Placeholder = placeholder; Compare = compare; Format = format; //this.Default = Default; this.Default = ParseValuesFromStrings(Default); }
public Field(Controller2Garin controller, string title, string placeholder, EnumHtmlType htmlType, bool isRequired, bool needTranslate, bool isMultiple, string propertyName, int priority, List <string> Default, EnumFilterCompare compare = EnumFilterCompare.Equals, string format = null) { _init(controller, title, placeholder, htmlType, isRequired, needTranslate, isMultiple, propertyName, priority, Default, compare, format); }