Пример #1
0
        public DashboardControl()
        {
            InitializeComponent();
            productDbutils       = new ProductDbUtils();
            productCategoryUtils = new ProductCategoryDbUtils();
            long product  = productDbutils.productCounter();
            long category = productCategoryUtils.categoryCounter();

            productCount.Content  = product.ToString();
            categoryCount.Content = category.ToString();
        }
Пример #2
0
 public void updateCounter(int connection)
 {
     if (connection == 1)
     {
         productDbutils       = new ProductDbUtils();
         productCategoryUtils = new ProductCategoryDbUtils();
         long product  = productDbutils.productCounter();
         long category = productCategoryUtils.categoryCounter();
         productCount.Content  = product.ToString();
         categoryCount.Content = category.ToString();
     }
 }