private void tabPage_amdRole_Enter(object sender, EventArgs e) { listBox_amdRole_grantedClinicRole.Items.Clear(); textBox_amdRole_userId.Clear(); ucMgr.setAmdRoleUserCombo(comboBox_amdRole_user); comboBox_amdRole_user.SelectedIndex = 0; ucMgr.setUserPermissibleClinicCombo(comboBox_amdRole_clinic); comboBox_amdRole_clinic.SelectedIndex = 0; ucMgr.setUserPermissibleRoleCombo(comboBox_amdRole_role); comboBox_amdRole_role.SelectedIndex = 0; }
public void reset() { UserClinicMgr ucMgr = new UserClinicMgr(); textBox_userId.ReadOnly = false; textBox_userId.Clear(); textBox_chiName.Clear(); textBox_engName.Clear(); textBox_regNo.Clear(); textBox_password.Clear(); textBox_cmfPassword.Clear(); ucMgr.setUserPermissibleClinicCombo(comboBox_clinic); comboBox_clinic.SelectedIndex = 0; ucMgr.setUserPermissibleRoleCombo(comboBox_role); comboBox_role.SelectedIndex = 0; checkBox_isSuspended.Enabled = true; checkBox_isSuspended.Checked = false; }