private void CompareByfVsRnt() { if (RntCell == null) { IsValidImport = false; WhyInvalid = "Rnt cell is NULL"; return; } IsValidImport = RntCell.Matches(ByfCell, out string whyNot); WhyInvalid = whyNot; }
private bool Validate(BillCode billCode, out string whyNot) { var val = RntCell?.For(billCode); if (val.HasValue) { whyNot = ""; return(true); } whyNot = $"No balance for ‹{billCode}›."; return(false); }