private bool CheckZipCD(CKM_TextBox txt) { M_ZipCode_Entity mze = new M_ZipCode_Entity { ZipCD1 = (txt == txtZipCode1) ? txt.Text : string.Empty, ZipCD2 = (txt == txtZipCode2) ? txt.Text : string.Empty }; if (!tprg_Kaiin_BL.M_ZipCode_Select(mze)) { tprg_Kaiin_BL.ShowMessage("E101"); txt.Focus(); txt.MoveNext = false; return(false); } return(true); }
//old[CheckZipCD] private bool CheckZipCD(CKM_TextBox txt) { M_ZipCode_Entity mze = new M_ZipCode_Entity { ZipCD1 = (txt == txtZipCD1) ? txt.Text : string.Empty, ZipCD2 = (txt == txtZipCD2) ? txt.Text : string.Empty }; mtsbl = new MasterTouroku_Souko_BL(); if (!mtsbl.M_ZipCode_Select(mze)) { mtsbl.ShowMessage("E101"); txt.Focus(); txt.MoveNext = false; return(false); } return(true); }