Beispiel #1
0
        /*카테고리 별 상품들 업데이트하는 함수*/
        private void POS_SalePro_Refresh()
        {
            DBConn_Product dbPros = new DBConn_Product();

            //list초기화
            DB_ProList             = dbPros.GetProductForAssessment(cb_select_cate);
            lb_Product.ItemsSource = DB_ProList.OrderBy(i => i.Id).ToList();  //리스트 값을 오름차순으로 정렬
        }
Beispiel #2
0
        private void POS_product_Refresh()
        {
            DBConn_Product dbPros = new DBConn_Product();

            //list초기화
            DB_ProList = dbPros.GetProductForAssessment(cb_select_cate);

            if (DB_ProList.Count > 0)
            {
                btn_ProductDelete.IsEnabled = true;
            }
            else
            {
                btn_ProductDelete.IsEnabled = false;
            }

            lv_Product.ItemsSource = DB_ProList.OrderBy(i => i.Id).ToList();  //리스트 값을 오름차순으로 정렬
        }