public BarCodeResult(string code, BarCodeFormat format) { this.Success = true; this.Code = code; this.Format = format; }