private void IssoLVHistory_ItemTapped(object sender, ItemTappedEventArgs e)
        {
            var          index = ((ObservableCollection <TableRow>)issoLVHistory.ItemsSource).IndexOf(e.Item as TableRow);
            var          table = _connection.Query <RATING>("select * from RATING where C_ISSO=? and RATINGDATE=?", _cIsso, _rows[index].DateMonth).ToList()[0];
            AddNewRating page;

            if (table.SYNC)
            {
                page = new AddNewRating(_cIsso, _currentRating, table.CURRENTRATING, TypeNewRating.IsPreviewed, _currentPosition, table.RATINGDATE, false);
            }
            else
            {
                bool canAddPhotos = false;
                if (_currentPosition != null)
                {
                    double distance = CommonStaffUtils.GetDistance(_issoLatitude, _issoLongitude, _currentPosition.Latitude, _currentPosition.Longitude, _length);
                    if (distance < 100 + _currentPosition.Accuracy)
                    {
                        canAddPhotos = true;
                    }
                }
                page = new AddNewRating(_cIsso, _currentRating, table.CURRENTRATING, TypeNewRating.IsEditable, _currentPosition, table.RATINGDATE, canAddPhotos);
            }
            Navigation.PushAsync(page);
            ((ListView)sender).SelectedItem = null;
        }
 private void AddNewRating()
 {
     //if (!CheckGPS()) return;
     //if(!CheckTimeOfLastRating())
     if (true)
     {
         var dateMonth = _currentPosition.Timestamp.ToUnixTimeMilliseconds();
         var page      = new AddNewRating(_cIsso, _currentRating, 0, TypeNewRating.IsNew, _currentPosition, dateMonth, true);
         Navigation.PushAsync(page);
     }
     else
     {
         DisplayAlert("", "Вы не можете вносить более одной оценки ситуации в день для текущего сооружения", "OK");
     }
 }