public ScanWindow(DocumentPrintFlowElement flowElement) { InitializeComponent(); this._flowElement = flowElement; #region 窗体素材加载 //窗体背景图 this.imgBackground.Source = ButtonExtend.InitButtonWithNormalImg("Background"); ; //初始化界面元素 InitSysImg(); #endregion }
public ScanWindow(DocumentPrintFlowElement flowElement) { InitializeComponent(); // 在此点下面插入创建对象所需的代码. this._flowElement = flowElement; #region 窗体素材加载 //窗体背景图 this.imgBackground.Source = ButtonExtend.InitButtonWithNormalImg("Background"); //通过消息得到解码信息 IntPtr hwnd = new WindowInteropHelper(this).Handle; Dll_Camera.GetAppHandle(hwnd); //二维码扫描设备获取异常 if (Dll_Camera.GetDevice() != 1) { HttpAPIService.LiveReportAPI(HttpUtility.UrlEncode("二维码扫描设备获取异常"),"0"); } //初始化界面元素 InitSysImg(); #endregion }