private void button1_Click(object sender, EventArgs e) { if (!this.isUpdate) { if (this.DuplicateID()) { MessageBox.Show("Employee ID Duplicate!!!!", "Information", MessageBoxButtons.OK, MessageBoxIcon.Information); } else { Save(); Reset(); PopulateComboboxDesignation(); PopulateComboboxDept(); PopulateComboboxSubDept(); PopulateComboboxID(); PopulateComboboxCompany(); PopulateComboboxBank(); Forms.AddPhoto ser = new Forms.AddPhoto(comboBox7.Text); ser.Show(); } } else MessageBox.Show("Please Press Update Button.", "Message", MessageBoxButtons.OK, MessageBoxIcon.Information); }
private void button4_Click_1(object sender, EventArgs e) { Forms.AddPhoto ser = new Forms.AddPhoto(comboBox7.Text); ser.Show(); }