コード例 #1
0
        public List <StructOfProduct> Finde_ByNumber(string number)
        {
            List <StructOfProduct> filtredData = new List <StructOfProduct> ();

            ReadDB readDB = new ReadDB(pathToDB, bufer);

            filtredData = readDB.Search(number, ParametrFiltr.Code);

            return(filtredData);
        }
コード例 #2
0
        public List <StructOfProduct> Finde_ByName(string name)
        {
            List <StructOfProduct> filtredData = new List <StructOfProduct> ();

            ReadDB readDB = new ReadDB(pathToDB, bufer);

            filtredData = readDB.Search(name, ParametrFiltr.ProductName);

            return(filtredData);
        }
コード例 #3
0
        public List <StructOfProduct> Finde_ByParametr(string parametr, string valueParam)
        {
            List <StructOfProduct> filtredData = new List <StructOfProduct> ();

            ReadDB readDB = new ReadDB(pathToDB, bufer);

            List <StructOfProduct> data = readDB.Search(parametr, ParametrFiltr.Parametr);


            foreach (StructOfProduct product in data)
            {
                if (product.ValueParametr == valueParam)
                {
                    filtredData.Add(product);
                }
            }


            return(filtredData);
        }