private void pictureBox1_Click(object sender, EventArgs e) { string a = "Show"; try { CheckId E = new CheckId(a, User.SelectedItem.ToString().Remove(9), us); Close(); E.Show(); } catch { CheckId E = new CheckId(a, " ", us); Close(); E.Show(); } }
private void pictureBox4_Click(object sender, EventArgs e) { String A = ""; try { CheckId I = new CheckId(A, User.SelectedItem.ToString().Remove(9), us); Close(); I.Show(); } catch { CheckId I = new CheckId(A, " ", us); Close(); I.Show(); } }