public static DialogResult Show(string Text, string Caption, string btnOK, string btnCancel) { MsgBox = new SpecificSearch(); MsgBox.label1.Text = Text; MsgBox.btnCancel.Text = btnCancel; MsgBox.btnOK.Text = btnOK; MsgBox.ShowDialog(); return(result); }
private void btnReferralCases_Click(object sender, EventArgs e) { SpecificSearch.Show("Select Case to View", "PATIENT SEARCH", "OK", "Cancel"); //Referrals.Show("Enter Patient Number", "Search Patient Details", "OK", "Cancel"); }