2 using System.ComponentModel;
17 private Boolean _bReadOnly =
false;
23 [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
24 public string _Arrendamiento
39 [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
55 public Boolean _ReadOnly
64 if (Created) _SetReadOnly(_bReadOnly);
71 [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
76 return _oTiposModeloIVA;
80 if (value != null && value != _oTiposModeloIVA && _oTiposModeloIVA != value && value is
ConfigModelo115)
86 SubscripcionEventos();
92 #endregion PROPIEDADES 101 InitializeComponent();
104 # endregion CONSTRUCTOR 106 #region METODOS PÚBLICOS 114 BindearControlPropiedad(txtGrupoContribuyente,
"_Codigo",
"_Arrendamiento");
117 #endregion METODOS PÚBLICOS 119 #region METODOS PRIVADOS 124 private void SubscripcionEventos()
126 if (_oTiposModeloIVA != null)
130 loConfigModelo115.
_RefreshVisual -= ConfiguracionModelos115__RefreshVisual;
131 loConfigModelo115.
_RefreshVisual += ConfiguracionModelos115__RefreshVisual;
139 private void ConfiguracionModelos115__RefreshVisual(
string tcTipo)
141 BindearControlPropiedad(txtGrupoContribuyente,
"_Codigo",
"_Arrendamiento", tlClear:
true);
144 private void _SetReadOnly(Boolean tbReadOnly)
146 txtGrupoContribuyente._ReadOnly = tbReadOnly;
150 private void ConfiguracionModelos_Load(
object sender, EventArgs e)
152 _SetReadOnly(_ReadOnly);
163 private void BindearControlPropiedad(Control toControl,
string tcNombrePropiedadControl,
string tcNombrePropiedadNegocio,
bool tlClear =
false)
166 toControl.DataBindings.Clear();
168 Binding loBind = toControl.DataBindings[tcNombrePropiedadControl];
171 toControl.DataBindings[0].ReadValue();
173 toControl.DataBindings.Add(tcNombrePropiedadControl,
this, tcNombrePropiedadNegocio,
true);
176 #endregion METODOS PRIVADOS
Definición base de Tipos de modelo
string _ArrendamientoInmueblesUrbanos
Arrendamiento o subarrendamiento de inmuebles urbanos
Interficie para los UserControl de configuración de modelos
bool _LinkForm
Si la clase de negocio trabaja bajo formulario
_RefreshVisual_Handler _RefreshVisual
Desencadena el evento para refrescar la capa visual
Configuración del modelo 115