private void listBox1_DoubleClick(object sender, EventArgs e) { if (listBox1.SelectedIndex > -1) { ShowBusinessContact s = new ShowBusinessContact(this, ths, "update"); addcontroltopanel(s); } else { MessageBox.Show("No Selected Bussines Note to Show", "Error", MessageBoxButtons.OK, MessageBoxIcon.Warning); } }
private void pictureBox3_Click_1(object sender, EventArgs e) { ShowBusinessContact s = new ShowBusinessContact(this, ths, "insert"); addcontroltopanel(s); }