public void UpdateView() { this.ViewUpdating = true; ShellControlHelper.PropertyDescriptorUpdate(this, this._entity); FormElementPictureBoxEntityDev entity = (FormElementPictureBoxEntityDev)_formElement; PropertyDescriptorCollection pdc = TypeDescriptor.GetProperties(this); PropertyDescriptor pds; pds = pdc.Find("Image", false); if (pds != null) { if (String.IsNullOrEmpty(entity.Img) == false) { ImageResourceInfo imageResource = _resourceComponentService.GetImageResource(entity.Img); if (imageResource != null) { Image image = imageResource.GetImage(); pds.SetValue(this, image); } } else { pds.SetValue(this, null); } } ShellControlHelper.SetProperty(this, "SizeMode", entity.SizeMode); this.ViewUpdating = false; }
public void UpdateView() { this.ViewUpdating = true; ShellControlHelper.PropertyDescriptorUpdate(this, this._entity); FormElementComboBoxEntityDev entity = (FormElementComboBoxEntityDev)_formElement; ShellControlHelper.SetProperty(this, "DropDownStyle", entity.ComboBoxStyle); ShellControlHelper.SetProperty(this, "WaterText", entity.WaterText); this.ViewUpdating = false; }
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; }
public void UpdateView() { this.ViewUpdating = true; ShellControlHelper.PropertyDescriptorUpdate(this, this._entity); FormElementLabelEntityDev entity = (FormElementLabelEntityDev)_formElement; ShellControlHelper.SetProperty(this, "AutoSize", entity.AutoSize); ShellControlHelper.SetProperty(this, "TextAlign", entity.TextAlign); this.ViewUpdating = false; }
public void UpdateView() { this.ViewUpdating = true; ShellControlHelper.PropertyDescriptorUpdate(this, this._entity); this.ViewUpdating = false; }