private void Load()
 {
     CurrentPage  = 1;
     ISFirst      = false;
     TotalRecords = _saleServ.GetSalesNumer(Key, _dateFrom, _dateTo);
     LastPage     = (int)Math.Ceiling(Convert.ToDecimal((double)_saleServ.GetSalesNumer(_key, _dateFrom, _dateTo) / 17));
     if (_lastPage == 0)
     {
         LastPage = 1;
     }
     if (_lastPage == 1)
     {
         ISLast = false;
     }
     else
     {
         ISLast = true;
     }
     TotalPrice = _saleServ.GetSalesPrice(_key, _dateFrom, _dateTo);
     TotalCost  = _saleServ.GetSalesCost(_key, _dateFrom, _dateTo);
     Sales      = new ObservableCollection <Sale>(_saleServ.SearchSales(_key, _currentPage, _dateFrom, _dateTo));
 }