Esempio n. 1
0
		private static BarCodeFormat FromXingFormat(ZXing.BarcodeFormat format) 
		{
			return (BarCodeFormat)Enum.Parse(typeof(BarCodeFormat), format.ToString());
		}
Esempio 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;
 }