/// <summary> /// Tries to find a match for the payer on this claim. If a match isn't found, pops up a form asking the user to choose one. /// </summary> /// <param name="c"></param> private static Dictionary <string, string> GetMercuryPayerID(string payer_name) { mercury_payer_list mpl = new mercury_payer_list(); Dictionary <string, string> easyMatches = mpl.SearchIncludeAlias(payer_name); if (easyMatches == null) { // Ask the user to select a payer id Mercury.frmFindMercuryPayer toShow = new Mercury.frmFindMercuryPayer(payer_name); toShow.ShowDialog(); easyMatches = new Dictionary <string, string>(); easyMatches.Add("id", toShow.PayerID); easyMatches.Add("name", toShow.PayerName); } return(easyMatches); }