public override void afterAltera() { base.afterAltera(); if (vTP_Modo == TTpModo.tm_Edit) { NM_CampoFormat.Enabled = false; ID_ParamClasse.Enabled = false; cb_TP_Dado.Enabled = true; cb_NMClasse.Enabled = true; cbNMDLL.Enabled = true; cb_STObrigatorio.Enabled = true; cb_Null.Enabled = true; if (cb_NMClasse.Text.Trim() == "") { HabilitaCampos(false); } else { HabilitaCampos(true); } cb_TP_Dado_SelectedIndexChanged(null, null); NM_Param.Focus(); } }
public override void afterNovo() { if ((vTP_Modo == TTpModo.tm_busca) || (vTP_Modo == TTpModo.tm_Standby)) { BS_ParamClasse.ResetBindings(true); BS_ParamClasse.AddNew(); base.afterNovo(); ID_ParamClasse.Enabled = false; NM_Param.Focus(); cb_TP_Dado.Enabled = true; cb_NMClasse.Enabled = true; cbNMDLL.Enabled = true; cb_STObrigatorio.Enabled = true; cb_Null.Enabled = true; cb_TP_Dado_SelectedIndexChanged(null, null); HabilitaCampos(false); cb_TP_Dado.SelectedIndex = 0; if (!NM_Param.Focus()) { NM_Param.Focus(); } } }