Пример #1
0
        public void GetLocationDough(string site)
        {
            EFData ef = new EFData();

            foreach (var item in ef.ReadLocation())
            {
                if (item.Name == site)
                {
                    Dough = double.Parse(item.dough.ToString());
                }
            }
        }
Пример #2
0
        public int FindLocationByName(string itemName)
        {
            EFData ed = new EFData();

            foreach (var item in ed.ReadLocation())
            {
                if (item.Name == itemName)
                {
                    return(item.LocationId);
                }
            }

            throw new ArgumentNullException("No Location Selected");
        }