//utilisation de mot de passe private void checkBox1_CheckedChanged(object sender, EventArgs e) { if (!checkBox1.Checked) { label5.Hide(); PassBox.Hide(); } else { label5.Show(); PassBox.Show(); } }
private void EditDelUsersMnBtn_Click(object sender, EventArgs e) { CourseGroupBox.Hide(); CoursesList.Hide(); PassBox.Hide(); PassLabel.Hide(); AssignMsgLabel.Hide(); AssignCourseBtn.Hide(); HideAllErrors(); CancelUsersBtn.Hide(); CancelCoursesBtn.Hide(); ClearBoxes(); UsersList.Enabled = true; CoursesList.Enabled = true; RegNumBox.Enabled = false; UserGroupBox.Show(); UsersList.Show(); this.UserGroupBox.Location = new Point(550, 12); this.UsersList.Location = new Point(150, 12); ChangeMsgLabel("Edit", "Users"); CreateEditUserBtn.Text = "Submit"; }