Exemplo n.º 1
0
		private static BarCodeFormat FromXingFormat(ZXing.BarcodeFormat format) 
		{
			return (BarCodeFormat)Enum.Parse(typeof(BarCodeFormat), format.ToString());
		}
Exemplo n.º 2
0
 private BarCodeType ZxingToBarcode(ZXing.BarcodeFormat format)
 {
     foreach(BarCodeType type in Enum.GetValues(typeof(BarCodeType))){
         if(format.ToString().Equals(type.ToString())) return type;
     }
     return BarCodeType.DEFAULT;
 }