public BindingList <TubeForGrid> LoadTubesToCheckBox(BindingList <TubeForGrid> tubesFromGrid) { var dtoTube = new DtoTube1() { Code = string.Empty, Name = string.Empty }; var tubes = new TubeServiceClient().FindTubes(dtoTube); var query = from tubeForCheckBox in tubesFromGrid join tube in tubes on tubeForCheckBox.Code equals tube.Code select new TubeForGrid() { Id = tubeForCheckBox.Id, Code = tube.Code, Name = tube.Name, ReceivedDt = tubeForCheckBox.ReceivedDt, Tests = tubeForCheckBox.Tests }; var tubesForCheckBox = new BindingList <TubeForGrid>(); foreach (var tubeForGrid in query) { tubesForCheckBox.Add(tubeForGrid); } return(tubesForCheckBox); }
public BindingList <DtoTube1> SearchTubes() { var dtoTube = new DtoTube1() { Code = string.Empty, Name = string.Empty }; return(new BindingList <DtoTube1>(new TubeServiceClient().FindTubes(dtoTube))); }
public BindingList <TubeService.DtoTube> LoadDefaultTubes() { var dtoTube = new TubeService.DtoTube() { Code = string.Empty, Name = string.Empty }; return(new BindingList <TubeService.DtoTube>(new TubeServiceClient().FindTubes(dtoTube))); }
public BindingList<DtoTube1> SearchTubes() { var dtoTube = new DtoTube1() { Code = string.Empty, Name = string.Empty }; return new BindingList<DtoTube1>(new TubeServiceClient().FindTubes(dtoTube)); }
public BindingList<TubeForGrid> LoadTubesToCheckBox(BindingList<TubeForGrid> tubesFromGrid) { var dtoTube = new DtoTube1() { Code = string.Empty, Name = string.Empty }; var tubes = new TubeServiceClient().FindTubes(dtoTube); var query = from tubeForCheckBox in tubesFromGrid join tube in tubes on tubeForCheckBox.Code equals tube.Code select new TubeForGrid() { Id = tubeForCheckBox.Id, Code = tube.Code, Name = tube.Name, ReceivedDt = tubeForCheckBox.ReceivedDt, Tests = tubeForCheckBox.Tests }; var tubesForCheckBox = new BindingList<TubeForGrid>(); foreach (var tubeForGrid in query) { tubesForCheckBox.Add(tubeForGrid); } return tubesForCheckBox; }