public UserControlSETextBoxExDevDataRuleRegex(FormElementTextBoxEntityDev entity)
 {
     InitializeComponent();
     ApplyLanguageResource();
     Unity.ApplyResource(this);
     this._entity = entity;
 }
        public void UpdateView()
        {
            this.ViewUpdating = true;
            ShellControlHelper.PropertyDescriptorUpdate(this, this._entity);
            FormElementTextBoxEntityDev entity = (FormElementTextBoxEntityDev)_formElement;

            ShellControlHelper.SetProperty(this, "ReadOnly", entity.ReadOnly);
            ShellControlHelper.SetProperty(this, "Multiline", entity.MultiLine);
            this.ViewUpdating = false;
        }
Beispiel #3
0
 public static void CheckWarning(FormElementTextBoxEntityDev entity)
 {
     entity.Warning.Clear();
     if (String.IsNullOrEmpty(entity.DataItemId) == false)
     {
         string[]       ids              = entity.DataItemId.Split('.');
         string         dataEntityId     = ids[0];
         string         dataItemEntityId = ids[1];
         DataEntity     dataEntity       = _dataEntityComponentService.GetDataEntity(dataEntityId);
         DataItemEntity dataItemEntity   = null;
         if (dataEntity != null)
         {
             dataItemEntity = dataEntity.Items.GetEntityById(dataItemEntityId);
         }
         if (dataEntity == null || dataItemEntity == null)
         {
             entity.Warning.AddWarningSign(entity, Language.Current.EntityDev_FormElementEditTextBoxEntityDev_DataItemEntityNotExist);
         }
     }
     WarningCheckerHelper.EventsValidate(entity);
 }
Beispiel #4
0
 public ModifyDataRuleCommand(FormElementTextBoxEntityDev entity)
 {
     this._entity = entity;
 }
 public FormSETextBoxExDevDataRule(FormElementTextBoxEntityDev entity)
 {
     InitializeComponent();
     Unity.ApplyResource(this);
     this._entity = entity;
 }