private bool CreateBarcode() { bsCreate.EndEdit(); bool bResult = false; string strError = string.Empty; GetCreatePara(); if (!CheckCreate()) { return(false); } List <Barcode_Model> lst = new List <Barcode_Model>(); bResult = Print_Func.CreateBarcodeInfo(parameter, ref lst, ref strError); if (!bResult || !string.IsNullOrEmpty(strError)) { return(Common.Common_Func.ErrorMessage(strError, "生成失败")); } if (lst == null || lst.Count <= 0) { return(Common.Common_Func.ErrorMessage("未获取到任何数据", "生成失败")); } lstBarcode = lst; return(true); }