Example #1
0
        internal void ClearSession()
        {
            _log.DebugEx("> ClearSession START.");

            GeoCalculatiorFacade.ClearUserSessionPoints();
            OnPointDeleted.Invoke(-1);

            _log.DebugEx("> ClearSession END.");
        }
Example #2
0
        internal void RemovePoint(Guid id)
        {
            _log.DebugEx("> RemovePoint START.");

            var removingGeoPoint = GeoCalculatiorFacade.GetUserSessionPointById(id);

            GeoCalculatiorFacade.DeleteUserSessionPoint(id);
            OnPointDeleted.Invoke(removingGeoPoint.PointNumber);

            _log.DebugEx("> RemovePoint END.");
        }
        internal GeoCalculatorInteraction(GeoCalculatorController controller)
        {
            _controller = controller;

            _controller.OnPointDeleted += (pointId) =>
            {
                OnPointDeleted?.Invoke(pointId);
            };

            _controller.OnPointUpdated += () =>
            {
                OnPointUpdated?.Invoke();
            };
        }