public static StationCardFragment WithStation(Station station, GeoPoint currentLocation, BikeActionStatus status)
 {
     var r = new StationCardFragment ();
     r.station = station;
     r.currentLocation = currentLocation;
     r.status = status;
     return r;
 }
Esempio n. 2
0
        public static StationCardFragment WithStation(Station station, GeoPoint currentLocation, BikeActionStatus status)
        {
            var r = new StationCardFragment();

            r.station         = station;
            r.currentLocation = currentLocation;
            r.status          = status;
            return(r);
        }
Esempio n. 3
0
        public override Fragment GetFragment(int row, int column)
        {
            if (column == 1)
            {
                return(ActionButtonFragment.WithAction("Navigate", Resource.Drawable.navigate_button));
            }
            if (column == 2)
            {
                return(ActionButtonFragment.WithAction("Add to Favorite", Resource.Drawable.favorite_button));
            }

            return(StationCardFragment.WithStation(stations [row], currentLocation, status));
        }