public MainController()
        {
            _locationHelper = new LocationHelper();

            _mainView = new MainView(_locationHelper);
            View = _mainView;

            _mainView.StartRegionMonitoringPressed += OnStartRegionMonitoringPressed;
            _mainView.StartSignificantLocationServicePressed += OnStartSignificantLocationServicePressed;
        }
 public LocationTableSource(LocationHelper locationHelper)
 {
     _locationhelper = locationHelper;
 }
 public LocationManagerDelegate(LocationHelper locationHelper)
 {
     _locationHelper = locationHelper;
 }
        public MainView(LocationHelper locationHelper)
        {
            _locationHelper = locationHelper;

            _startRegionMonitorring = new UIButton(UIButtonType.RoundedRect);
            _startRegionMonitorring.SetTitle("Start RM", UIControlState.Normal);
            _startRegionMonitorring.Frame = new RectangleF(0, 0, 150, 50);
            _startRegionMonitorring.TouchUpInside += StartRegionMonitoringHandler;

            _startSignificantLocationService = new UIButton(UIButtonType.RoundedRect);
            _startSignificantLocationService.SetTitle("Start SLS", UIControlState.Normal);
            _startSignificantLocationService.Frame = new RectangleF(170, 0, 150, 50);
            _startSignificantLocationService.TouchUpInside += StartSignificantLocationServiceHandler;

            RectangleF tableFrame = new RectangleF(0, 50, 320, 410);
            _table = new UITableView(tableFrame, UITableViewStyle.Plain);
            _table.Source = new LocationTableSource(_locationHelper);

            _locationHelper.LocationObjectAdded += HandleLocationAdded;

            AddSubview(_startSignificantLocationService);
            AddSubview(_startRegionMonitorring);
            AddSubview(_table);
        }
Exemplo n.º 5
0
 public LocationTableSource(LocationHelper locationHelper)
 {
     _locationhelper = locationHelper;
 }