public List <Data> Select(string ID) //借用查询数据逻辑层 { try { var SelectDAL = new SelectDAL(); var Result = SelectDAL.Access(ID, 1); return(Result); } catch (Exception e) { throw e; } }
public delegate void SelectedDatasHandler(List <Data> SelectedDatas); //委托,与主窗体的业务逻辑层联动 public bool Select(string Selecting, int Type) { try { var DAL = new SelectDAL(); var Result = DAL.Access(Selecting, Type); if (Result == null) { return(false); } else { var Return = new SelectedDatasHandler(MainBLL.SelectDelegate); Return(Result); return(true); } } catch (Exception ex) { throw ex; } }