private void button2_Click(object sender, EventArgs e) { if (txtEventName.Text != "") { if (txtEventName.Text == "Wedding" || txtEventName.Text == "Baptismal" || txtEventName.Text == "Funeral") { frmNewParticipant frm = new frmNewParticipant(); frm.ShowDialog(); } else { frmAddEditParicipant frm = new frmAddEditParicipant(); frm.ShowDialog(); } } }
private void button2_Click(object sender, EventArgs e) { frmAddEditParicipant frm = new frmAddEditParicipant(); frm.Show(); }