private void skillsCertificationButton_Click(object sender, EventArgs e) { if (Conversions.ToBoolean(db.userExists(firstNameTextBox.Text, lastNameTextBox.Text, aliasTextBox.Text))) { db.updateSkillsOrCertifications(); if (skillsCertificationButton.Text.Equals("Save and Continue")) { if (!firstAidCheckBox.Checked) { newEmployeeTabControl.TabPages.Add(cardIDTabPage); newEmployeeTabControl.SelectTab(2); FinishButton.Show(); } else if (firstAidCheckBox.Checked & firstAidComboBox.SelectedIndex != -1) { newEmployeeTabControl.TabPages.Add(cardIDTabPage); newEmployeeTabControl.SelectTab(2); FinishButton.Show(); } else { titleSkillsAndCertificationLabel.BackColor = Color.Firebrick; titleSkillsAndCertificationLabel.Text = "Please, select the level of the first aid certificate"; } } else if (!firstAidCheckBox.Checked) { Close(); } else if (firstAidCheckBox.Checked & firstAidComboBox.SelectedIndex != -1) { } // EmployeeOptionsTabControl.SelectTab(1) else { titleSkillsAndCertificationLabel.BackColor = Color.Firebrick; titleSkillsAndCertificationLabel.Text = "Please, select the level of the first aid certificate"; } } }
protected void ShowHideButtons() { if (PageIndex > 0) { PreviousButton.Show(); } else { PreviousButton.Hide(); } if (PageIndex < (Pages.Count - 1)) { NextButton.Show(); FinishButton.Hide(); } else { NextButton.Hide(); FinishButton.Show(); } }