public BottomSheetViewController(CustomPin pin, CustomMap map, MKMapView nativeMap, CustomMapRenderer customMapRenderer) : base("BottomSheetViewController", null) { this.nativeMap = nativeMap; this.map = map; this.pin = pin; holdView = new UIView(); fullView = 300; partialView = UIScreen.MainScreen.Bounds.Height - (UIApplication.SharedApplication.StatusBarFrame.Height) - 80; this.customMapRenderer = customMapRenderer; }
public TableSource(CustomPin pin, CustomMap map, MKMapView nativeMap, BottomSheetViewController owner, CustomMapRenderer customMapRenderer) { this.nativeMap = nativeMap; this.map = map; this.pin = pin; this.owner = owner; organs = pin.Url.Split(','); userId = Int32.Parse(organs[organs.Length - 1]); organs = organs.Take(organs.Length - 1).ToArray(); Cells = new Dictionary<string, UITableViewCell>(); this.customMapRenderer = customMapRenderer; }
public RecipientsTableSource(PotentialMatchesBottomSheetViewController owner , DonatableOrgan currentOrgan, CustomMap map, CustomPin customPin, CustomMapRenderer customMapRenderer) { this.owner = owner; this.UserPhotos = new Dictionary <int, UIImage>(); this.recipients = currentOrgan.topReceivers; this.currentOrgan = currentOrgan; this.formsMap = map; this.customPin = customPin; this.customMapRenderer = customMapRenderer; }
public PotentialMatchesBottomSheetViewController(CustomPin pin, CustomMap map, MKMapView nativeMap, string organ, UITableViewCell currentOrganCell, CustomMapRenderer customMapRenderer) : base("PotentialMatchesBottomSheetViewController", null) { this.nativeMap = nativeMap; this.map = map; this.organName = organ; this.customPin = pin; holdView = new UIView(); fullView = 360; partialView = UIScreen.MainScreen.Bounds.Height - (UIApplication.SharedApplication.StatusBarFrame.Height) - 80; this.currentOrganCell = currentOrganCell; this.customMapRenderer = customMapRenderer; foreach (DonatableOrgan donatableOrgan in customPin.donatableOrgans) { if (donatableOrgan.organType.ToLower().Equals(organName.ToLower())) { currentOrgan = donatableOrgan; } } }
public async Task addSlideUpSheet(CustomPin pin, CustomMap map, MKMapView nativeMap, CustomMapRenderer customMapRenderer) { //Get the current UI Window var window = UIApplication.SharedApplication.KeyWindow; BottomSheetViewController bottomSheetVC = new BottomSheetViewController(pin, map, nativeMap, customMapRenderer); var rootVC = window.RootViewController; if (rootVC != null) { bottomSheetVC.AddChildViewController(rootVC); } window.RootViewController = bottomSheetVC; }