コード例 #1
0
        public void GetDataFromDatabase()
        {
            DatabaseModel             database    = new DatabaseModel();
            HashSet <SearchItemModel> itemsFromDB = database.GetMedicines();

            foreach (SearchItemModel item in itemsFromDB)
            {
                DataGridMedicines.Add(item);
            }
        }
コード例 #2
0
        private void FindItem()
        {
            DataGridMedicines.Clear();
            DatabaseModel             database    = new DatabaseModel();
            HashSet <SearchItemModel> itemsFromDB = database.FindMedicines(searchLine);

            foreach (SearchItemModel item in itemsFromDB)
            {
                DataGridMedicines.Add(item);
            }
        }