private void EnteredBarcode(string barcode) { long rn; if (TryParseBarcode(barcode, out rn)) { Filter.Rn = rn; InvokeCommand.Execute(null); } }