Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        public BindingList <DtoTube1> SearchTubes()
        {
            var dtoTube = new DtoTube1()
            {
                Code = string.Empty,
                Name = string.Empty
            };

            return(new BindingList <DtoTube1>(new TubeServiceClient().FindTubes(dtoTube)));
        }
Ejemplo n.º 3
0
        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)));
        }
Ejemplo n.º 4
0
 public BindingList<DtoTube1> SearchTubes()
 {
     var  dtoTube = new DtoTube1()
     {
         Code = string.Empty,
         Name = string.Empty
     };
     return new BindingList<DtoTube1>(new TubeServiceClient().FindTubes(dtoTube));
 }
Ejemplo n.º 5
0
        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;
        }