private void Bttn_Clean_Click(object sender, EventArgs e) { if (Rad_New.Checked == true) { Txt_NameUser.Clear(); Txt_PasdUser.Clear(); } else { Txt_NameUser.Clear(); Txt_PasdUser.Clear(); Txt_CodUser.Clear(); } }
private void Rad_New_CheckedChanged(object sender, EventArgs e) { if (Rad_New.Checked == true) { Txt_CodUser.Text = Convert.ToString(User.ObtenerUltimoCodigoUsuario()); Txt_NameUser.Clear(); Txt_PasdUser.Clear(); Txt_NameUser.Enabled = true; Cmb_Estado.Enabled = false; Vacios(sender, e); } else { Txt_CodUser.Clear(); Txt_NameUser.Clear(); Txt_PasdUser.Clear(); Txt_NameUser.Enabled = false; Cmb_Estado.Enabled = true; Vacios(sender, e); } }