static TCBookingRequestCell () { if (UIDevice.CurrentDevice.UserInterfaceIdiom == UIUserInterfaceIdiom.Phone) Nib = UINib.FromName ("TCBookingRequestCell_iPhone", NSBundle.MainBundle); else Nib = UINib.FromName ("TCBookingRequestCell_iPhone", NSBundle.MainBundle); }
static TCSearchCellOne () { if (UIDevice.CurrentDevice.UserInterfaceIdiom == UIUserInterfaceIdiom.Phone) Nib = UINib.FromName ("TCSearchCellOne_iPhone", NSBundle.MainBundle); else Nib = UINib.FromName ("TCSearchCellOne_iPhone", NSBundle.MainBundle); }
static LabelCell () { if (UIDevice.CurrentDevice.UserInterfaceIdiom == UIUserInterfaceIdiom.Phone) Nib = UINib.FromName ("LabelCell_iPhone", NSBundle.MainBundle); else Nib = UINib.FromName ("LabelCell_iPad", NSBundle.MainBundle); }
static DateTimeCollectionCell () { if (UIDevice.CurrentDevice.UserInterfaceIdiom == UIUserInterfaceIdiom.Phone) Nib = UINib.FromName ("DateTimeCollectionCell_iPhone", NSBundle.MainBundle); else Nib = UINib.FromName ("DateTimeCollectionCell_iPad", NSBundle.MainBundle); }
static TCPopupMessage () { if (UIDevice.CurrentDevice.UserInterfaceIdiom == UIUserInterfaceIdiom.Phone) Nib = UINib.FromName ("TCPopupMessage", NSBundle.MainBundle); else { Nib = UINib.FromName ("TCPopupMessage", NSBundle.MainBundle); } }
static TCBookView () { if (UIDevice.CurrentDevice.UserInterfaceIdiom == UIUserInterfaceIdiom.Phone) Nib = UINib.FromName ("TCBookView_iPhone", NSBundle.MainBundle); else { Nib = UINib.FromName ("TCBookView_iPhone", NSBundle.MainBundle); } }
static NotifyNetworkView () { if (UIDevice.CurrentDevice.UserInterfaceIdiom == UIUserInterfaceIdiom.Phone) Nib = UINib.FromName ("NotifyNetworkView", NSBundle.MainBundle); else { Nib = UINib.FromName ("NotifyNetworkView", NSBundle.MainBundle); } }
static TCFileManager () { if (UIDevice.CurrentDevice.UserInterfaceIdiom == UIUserInterfaceIdiom.Phone) Nib = UINib.FromName ("TCFileManager", NSBundle.MainBundle); else { Nib = UINib.FromName ("TCFileManager", NSBundle.MainBundle); } }
static TCDatetimePicker () { if (UIDevice.CurrentDevice.UserInterfaceIdiom == UIUserInterfaceIdiom.Phone) Nib = UINib.FromName ("TCDatetimePicker_iPhone", NSBundle.MainBundle); else { Nib = UINib.FromName ("TCDatetimePicker_iPhone", NSBundle.MainBundle); } }
static StartTimeEntryViewCell() { Nib = UINib.FromName(nameof(StartTimeEntryViewCell), NSBundle.MainBundle); }
static MyTableViewCell() { Nib = UINib.FromName("MyTableViewCell", NSBundle.MainBundle); }
static CompaniesXibView() { Nib = UIDevice.CurrentDevice.UserInterfaceIdiom == UIUserInterfaceIdiom.Phone ? UINib.FromName("CompaniesXibView_iPhone", NSBundle.MainBundle) : UINib.FromName("CompaniesXibView_iPad", NSBundle.MainBundle); }
static DropdownCell() { Nib = UINib.FromName("DropdownCell", NSBundle.MainBundle); }
static ProfielenTableViewCell() { Nib = UINib.FromName ("ProfielenTableViewCell", NSBundle.MainBundle); }
static IndentTableViewCell() { Nib = UINib.FromName ("IndentTableViewCell", NSBundle.MainBundle); }
static SwitchCell() { Nib = UINib.FromName("SwitchCell", NSBundle.MainBundle); }
static CategoryViewCell() { Nib = UINib.FromName("CategoryViewCell", NSBundle.MainBundle); }
public override void ViewDidLoad() { base.ViewDidLoad(); _navController = TabBarController != null ? TabBarController.NavigationController : NavigationController; _navController.NavigationBar.Translucent = false; _gridDelegate = new CollectionViewFlowDelegate(collectionView, _presenter); _gridDelegate.IsGrid = false; _gridDelegate.ScrolledToBottom += ScrolledToBottom; _gridDelegate.CellClicked += CellAction; _collectionViewSource = new ProfileCollectionViewSource(_presenter, _gridDelegate); _collectionViewSource.IsGrid = false; collectionView.Source = _collectionViewSource; collectionView.RegisterClassForCell(typeof(LoaderCollectionCell), nameof(LoaderCollectionCell)); collectionView.RegisterClassForCell(typeof(PhotoCollectionViewCell), nameof(PhotoCollectionViewCell)); collectionView.RegisterNibForCell(UINib.FromName(nameof(PhotoCollectionViewCell), NSBundle.MainBundle), nameof(PhotoCollectionViewCell)); collectionView.RegisterClassForCell(typeof(NewFeedCollectionViewCell), nameof(NewFeedCollectionViewCell)); _refreshControl = new UIRefreshControl(); _refreshControl.ValueChanged += async(sender, e) => { await GetPosts(false, true); }; collectionView.Add(_refreshControl); _collectionViewSource.CellAction += CellAction; _collectionViewSource.TagAction += TagAction; collectionView.SetCollectionViewLayout(new UICollectionViewFlowLayout() { MinimumLineSpacing = 0, MinimumInteritemSpacing = 0, }, false); collectionView.Delegate = _gridDelegate; if (!BasePresenter.User.IsAuthenticated && CurrentPostCategory == null) { loginButton.Hidden = false; loginButton.Layer.CornerRadius = 20; loginButton.Layer.BorderWidth = 0; } loginButton.TouchDown += LoginTapped; hotButton.TouchDown += (object sender, EventArgs e) => { SwitchSearchType(PostType.Hot); }; topButton.TouchDown += (object sender, EventArgs e) => { SwitchSearchType(PostType.Top); }; newButton.TouchDown += (object sender, EventArgs e) => { SwitchSearchType(PostType.New); }; switcher.TouchDown += SwitchLayout; var searchTap = new UITapGestureRecognizer(SearchTapped); searchButton.AddGestureRecognizer(searchTap); GetPosts(); }
static SuggestionsViewCell() { Nib = UINib.FromName(nameof(SuggestionsViewCell), NSBundle.MainBundle); }
static CountryViewCell() { Nib = UINib.FromName(nameof(CountryViewCell), NSBundle.MainBundle); }
static GalleryDirectoryViewCell() { Nib = UINib.FromName("GalleryDirectoryViewCell", NSBundle.MainBundle); }
static HelpTableViewImageCell() { Nib = UINib.FromName("HelpTableViewImageCell", NSBundle.MainBundle); }
static StatViewCell () { Nib = UINib.FromName ("StatViewCell", NSBundle.MainBundle); }
static GalleryItemPhotoViewCell() { Nib = UINib.FromName("GalleryItemPhotoViewCell", NSBundle.MainBundle); }
static EigenschappenTableViewCell() { Nib = UINib.FromName ("EigenschappenTableViewCell", NSBundle.MainBundle); }
static RecentSearchesCell() { Nib = UINib.FromName("RecentSearchesCell", NSBundle.MainBundle); }
static NormalTableViewCell() { Nib = UINib.FromName ("NormalTableViewCell", NSBundle.MainBundle); }
static ChallengesTableViewCell() { Nib = UINib.FromName(ClassName, NSBundle.MainBundle); }
static HistoryViewCell () { Nib = UINib.FromName ("HistoryViewCell", NSBundle.MainBundle); }
static ArticleCell() { Nib = UINib.FromName("ArticleCell", NSBundle.MainBundle); }
static DownloadCell() { Nib = UINib.FromName("DownloadCell", NSBundle.MainBundle); }
public override void ViewDidLoad() { base.ViewDidLoad(); TableView.RegisterNibForCellReuse(UINib.FromName("boxViewCell", null), cellIdentifier); }
static MyTableViewCell() { Nib = UINib.FromName("MyTableViewCell", NSBundle.MainBundle); }
static TotalScoreCell() { Nib = UINib.FromName("TotalScoreCell", NSBundle.MainBundle); }
public override void ViewDidLoad() { base.ViewDidLoad(); RemoveBackBarButtonTitle(); CollectionView.RegisterNibForCell(UINib.FromName("NewOutletCollectionViewCell", NSBundle.MainBundle), NewOutletCollectionViewCell.Key); CollectionView.WeakDataSource = new NewOutletCollectionViewDataSource(); var delegateFlowLayout = new NewOutletCollectionViewDelegateFlowLayout(); delegateFlowLayout.ItemClicked += (UICollectionView arg1, NSIndexPath arg2) => { var items = RealmServices.GetAllAvailableOutlets(); var item = items[arg2.Row]; if (item == null) { return; } if (!item.AvailbleForAddition) { ShowDuplcateAccountAlert("For now, you can only have 1 " + item.Type + " account. We're working on it"); return; } if (item.Type.Equals(Outlet.outlet_type_phone)) { NavigationController.PushViewController(new EnterPhoneNumberViewController(), true); return; } if (item.Type.Equals(Outlet.outlet_type_email)) { NavigationController.PushViewController(new EnterEmailAddressViewController(), true); return; } if (item.Type.Equals(Outlet.outlet_type_website)) { NavigationController.PushViewController(new WebsiteViewController(), true); return; } if (item.Type.Equals(Outlet.outlet_type_facebook)) { NavigationController.PushViewController(new LoginWithFacebookViewController(), true); return; } if (item.Type.Equals(Outlet.outlet_type_linkedIn)) { NavigationController.PushViewController(new LinkedInWebViewController(), true); return; } if (item.Type.Equals(Outlet.outlet_type_github)) { NavigationController.PushViewController(new GithubWebViewController(), true); return; } if (item.Type.Equals(Outlet.outlet_type_instagram)) { NavigationController.PushViewController(new InstagramWebViewController(), true); return; } if (item.Type.Equals(Outlet.outlet_type_google)) { NavigationController.PushViewController(new LoginWithGoogleViewController(), true); return; } if (item.Type.Equals(Outlet.outlet_type_twitter)) { ShowTwitterAuthenticationFlow(); return; } if (item.Type.Equals(Outlet.outlet_type_pinterest)) { NavigationController.PushViewController(new PinterestWebViewController(), true); return; } }; CollectionView.WeakDelegate = delegateFlowLayout; }
static ClientViewCell() { Nib = UINib.FromName(nameof(ClientViewCell), NSBundle.MainBundle); }
static ReportsCalendarQuickSelectViewCell() { Nib = UINib.FromName(nameof(ReportsCalendarQuickSelectViewCell), NSBundle.MainBundle); }
static NotificationsTableViewCell() { Nib = UINib.FromName(ClassName, NSBundle.MainBundle); }
static PickerSelectorCell() { Nib = UINib.FromName("PickerSelectorCell", NSBundle.MainBundle); }
//public NSLayoutConstraint PostHeightConstraint => _detailedPostHeightConstraint; static DetailedPostTableViewCell() { Nib = UINib.FromName("DetailedPostTableViewCell", NSBundle.MainBundle); }
static SensorBinaryTableViewCell() { Nib = UINib.FromName ("SensorBinaryTableViewCell", NSBundle.MainBundle); }
static CurrentTradesCompany() { Nib = UINib.FromName("CurrentTradesCompany", NSBundle.MainBundle); }
static NotificationCell() { Nib = UINib.FromName ("NotificationCell", NSBundle.MainBundle); }
static DateFormatViewCell() { Nib = UINib.FromName(nameof(DateFormatViewCell), NSBundle.MainBundle); }
static TotemsTableViewCell() { Nib = UINib.FromName ("TotemsTableViewCell", NSBundle.MainBundle); }
static PhotoCollectionViewCell() { Nib = UINib.FromName(nameof(PhotoCollectionViewCell), NSBundle.MainBundle); }
static APLEarthquakeTableViewCell() { Nib = UINib.FromName ("EarthquakeCellID", NSBundle.MainBundle); }
static StateItemCellView() { Nib = UINib.FromName("StateItemCellView", NSBundle.MainBundle); }
static TextPostTableViewCell () { Nib = UINib.FromName ("TextPostTableViewCell", NSBundle.MainBundle); }
static PostingDescriptionCell() { Nib = UINib.FromName("PostingDescriptionCell", NSBundle.MainBundle); }
static PostingMapCell() { Nib = UINib.FromName("PostingMapCell", NSBundle.MainBundle); }
static PostingImageCollectionCell() { Nib = UINib.FromName("PostingImageCollectionCell", NSBundle.MainBundle); }
static ReportsLegendViewCell() { Nib = UINib.FromName(nameof(ReportsLegendViewCell), NSBundle.MainBundle); }
static TimeEntriesLogViewCell() { Nib = UINib.FromName(nameof(TimeEntriesLogViewCell), NSBundle.MainBundle); }
static SensorMultiLevelTableViewCell() { Nib = UINib.FromName (Key, NSBundle.MainBundle); }
static ThermostatTableViewCell() { Nib = UINib.FromName (Key, NSBundle.MainBundle); }
static DefaultCell() { Nib = UINib.FromName ("DefaultCell", NSBundle.MainBundle); }
static ReportsHeaderView() { Nib = UINib.FromName(nameof(ReportsHeaderView), NSBundle.MainBundle); }
static ImagePostTableViewCell () { Nib = UINib.FromName ("ImagePostTableViewCell", NSBundle.MainBundle); }
static UIVerticalTabbarViewCell() { Nib = UINib.FromName("UIVerticalTabbarViewCell", NSBundle.MainBundle); }