示例#1
0
 public MultiSelectValidatableObject(string name, MultiSelectFormControlSettingsDescriptor setting, IHttpService httpService, IEnumerable <IValidationRule> validations, UiNotificationService uiNotificationService)
     : base(name, setting.MultiSelectTemplate.TemplateName, validations, uiNotificationService)
 {
     this.Title = setting.Title;
     this._multiSelectFormControlSettingsDescriptor = setting;
     this._multiSelectTemplate = setting.MultiSelectTemplate;
     this.httpService          = httpService;
     itemComparer  = new MultiSelectItemComparer <E>(_multiSelectFormControlSettingsDescriptor.KeyFields);
     SelectedItems = new ObservableCollection <object>();
     GetItemSource();
 }
示例#2
0
 public MultiSelectValidatableObject(string name, MultiSelectFormControlSettingsDescriptor setting, IEnumerable <IValidationRule> validations, IContextProvider contextProvider)
     : base(name, setting.MultiSelectTemplate.TemplateName, validations, contextProvider.UiNotificationService)
 {
     this._multiSelectFormControlSettingsDescriptor = setting;
     this._multiSelectTemplate = setting.MultiSelectTemplate;
     this.Title       = this._multiSelectTemplate.LoadingIndicatorText;
     this.httpService = contextProvider.HttpService;
     itemComparer     = new MultiSelectItemComparer <E>(_multiSelectFormControlSettingsDescriptor.KeyFields);
     SelectedItems    = new ObservableCollection <object>();
     this.canExecute  = false;
     this.Placeholder = this._multiSelectTemplate.LoadingIndicatorText;
     GetItemSource();
 }
 public MultiSelectReadOnlyObject(string name, List <string> keyFields, string title, string stringFormat, MultiSelectTemplateDescriptor multiSelectTemplate, IContextProvider contextProvider)
     : base(name, multiSelectTemplate.TemplateName, contextProvider.UiNotificationService)
 {
     this._multiSelectTemplate = multiSelectTemplate;
     this._keyFields           = keyFields;
     this._stringFormat        = stringFormat;
     this.httpService          = contextProvider.HttpService;
     this.Title       = title;
     this.Placeholder = this._multiSelectTemplate.LoadingIndicatorText;
     itemComparer     = new MultiSelectItemComparer <E>(this._keyFields);
     SelectedItems    = new ObservableCollection <object>();
     GetItemSource();
 }