void IReadListener.OnRead(IDecodeResult decodeResult)
 {
     //// Change the displayed text to the current received result.
     //mBarcodeText.Text = decodeResult.Text;
     //mSymbology.Text = decodeResult.BarcodeID.ToString();
     MessagingCenter.Send <App, string>((App)Xamarin.Forms.Application.Current, "Barcode", decodeResult.Text);
 }
        public static Cheat ToCheat(this IDecodeResult result, MemoryDomain domain, string description)
        {
            var watch = Watch.GenerateWatch(
                domain,
                result.Address,
                result.Size,
                DisplayType.Hex,
                domain.EndianType == MemoryDomain.Endian.Big,
                description);

            return(result.Compare.HasValue
                                ? new Cheat(watch, result.Value, result.Compare.Value, true, Cheat.CompareType.Equal)
                                : new Cheat(watch, result.Value));
        }
Exemplo n.º 3
0
        private void AddCheat(string code, IDecodeResult result, string domain = null)
        {
            var memoryDomain = domain == null
                                ? MemoryDomains.SystemBus
                                : MemoryDomains[domain];

            if (result.IsValid)
            {
                var description = !string.IsNullOrWhiteSpace(txtDescription.Text)
                                        ? txtDescription.Text
                                        : code;
                Global.CheatList.Add(result.ToCheat(memoryDomain, description));
            }
            else
            {
                InputError(result.Error);
            }
        }
Exemplo n.º 4
0
 void IReadListener.OnRead(IDecodeResult decodeResult)
 {
     // Change the displayed text to the current received result.
     codeReaderHandler.OnReadCodeBar(decodeResult.Text);
 }
Exemplo n.º 5
0
 void IReadListener.OnRead(IDecodeResult decodeResult)
 {
     // Change the displayed text to the current received result.
     mBarcodeText.Text = decodeResult.Text;
     mSymbology.Text   = decodeResult.BarcodeID.ToString();
 }
Exemplo n.º 6
0
 public static bool IsValid(this IDecodeResult result, out DecodeResult valid)
 {
     valid = result as DecodeResult;
     return(result is DecodeResult);
 }