public override string GetTitle(UIPickerView pickerView, nint row, nint component) { if (pickerView.Tag == currentViewContorller.PICKER_VIEW_POWER_GAIN) { return(currentViewContorller.powerGainPickerData[(int)row]); } if (pickerView.Tag == currentViewContorller.PICKER_VIEW_INVENTORY_SESSION) { return(currentViewContorller.inventorySessionPickerData().GetItem <NSString>((uint)row).ToString()); } if (pickerView.Tag == currentViewContorller.PICKER_VIEW_SESSION_FLAG) { return(currentViewContorller.sessionFlagPickerData().GetItem <NSString>((uint)row).ToString()); } return("None"); }
public override nint GetRowsInComponent(UIPickerView pickerView, nint component) { //throw new NotImplementedException(); if (pickerView.Tag == currentViewContorller.PICKER_VIEW_POWER_GAIN) { return((nint)currentViewContorller.powerGainPickerData.Count); } if (pickerView.Tag == currentViewContorller.PICKER_VIEW_INVENTORY_SESSION) { return((nint)currentViewContorller.inventorySessionPickerData().Count); } if (pickerView.Tag == currentViewContorller.PICKER_VIEW_SESSION_FLAG) { return((nint)currentViewContorller.sessionFlagPickerData().Count); } return(0); }