Example #1
0
		static TCBookingRequestCell ()
		{
			if (UIDevice.CurrentDevice.UserInterfaceIdiom == UIUserInterfaceIdiom.Phone)
				Nib = UINib.FromName ("TCBookingRequestCell_iPhone", NSBundle.MainBundle);
			else
				Nib = UINib.FromName ("TCBookingRequestCell_iPhone", NSBundle.MainBundle);
		}
Example #2
0
		static TCSearchCellOne ()
		{
			if (UIDevice.CurrentDevice.UserInterfaceIdiom == UIUserInterfaceIdiom.Phone)
				Nib = UINib.FromName ("TCSearchCellOne_iPhone", NSBundle.MainBundle);
			else
				Nib = UINib.FromName ("TCSearchCellOne_iPhone", NSBundle.MainBundle);
		}
Example #3
0
 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);
 }
Example #5
0
		static TCPopupMessage ()
		{
			if (UIDevice.CurrentDevice.UserInterfaceIdiom == UIUserInterfaceIdiom.Phone)
				Nib = UINib.FromName ("TCPopupMessage", NSBundle.MainBundle);
			else {
				Nib = UINib.FromName ("TCPopupMessage", NSBundle.MainBundle);
			}
		}
Example #6
0
		static TCBookView ()
		{
			if (UIDevice.CurrentDevice.UserInterfaceIdiom == UIUserInterfaceIdiom.Phone)
				Nib = UINib.FromName ("TCBookView_iPhone", NSBundle.MainBundle);
			else {
				Nib = UINib.FromName ("TCBookView_iPhone", NSBundle.MainBundle);
			}
		}
Example #7
0
		static NotifyNetworkView ()
		{
			if (UIDevice.CurrentDevice.UserInterfaceIdiom == UIUserInterfaceIdiom.Phone)
				Nib = UINib.FromName ("NotifyNetworkView", NSBundle.MainBundle);
			else {
				Nib = UINib.FromName ("NotifyNetworkView", NSBundle.MainBundle);
			}
		}
Example #8
0
		static TCFileManager ()
		{
			if (UIDevice.CurrentDevice.UserInterfaceIdiom == UIUserInterfaceIdiom.Phone)
				Nib = UINib.FromName ("TCFileManager", NSBundle.MainBundle);
			else {
				Nib = UINib.FromName ("TCFileManager", NSBundle.MainBundle);
			}
		}
Example #9
0
		static TCDatetimePicker ()
		{
			if (UIDevice.CurrentDevice.UserInterfaceIdiom == UIUserInterfaceIdiom.Phone)
				Nib = UINib.FromName ("TCDatetimePicker_iPhone", NSBundle.MainBundle);
			else {
				Nib = UINib.FromName ("TCDatetimePicker_iPhone", NSBundle.MainBundle);
			}
		}
Example #10
0
 static StartTimeEntryViewCell()
 {
     Nib = UINib.FromName(nameof(StartTimeEntryViewCell), NSBundle.MainBundle);
 }
Example #11
0
 static MyTableViewCell()
 {
     Nib = UINib.FromName("MyTableViewCell", NSBundle.MainBundle);
 }
Example #12
0
 static CompaniesXibView()
 {
     Nib = UIDevice.CurrentDevice.UserInterfaceIdiom == UIUserInterfaceIdiom.Phone ? UINib.FromName("CompaniesXibView_iPhone", NSBundle.MainBundle) : UINib.FromName("CompaniesXibView_iPad", NSBundle.MainBundle);
 }
Example #13
0
 static DropdownCell()
 {
     Nib = UINib.FromName("DropdownCell", NSBundle.MainBundle);
 }
 static ProfielenTableViewCell()
 {
     Nib = UINib.FromName ("ProfielenTableViewCell", NSBundle.MainBundle);
 }
 static IndentTableViewCell()
 {
     Nib = UINib.FromName ("IndentTableViewCell", NSBundle.MainBundle);
 }
Example #16
0
 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();
        }
Example #19
0
 static SuggestionsViewCell()
 {
     Nib = UINib.FromName(nameof(SuggestionsViewCell), NSBundle.MainBundle);
 }
Example #20
0
 static CountryViewCell()
 {
     Nib = UINib.FromName(nameof(CountryViewCell), NSBundle.MainBundle);
 }
Example #21
0
 static GalleryDirectoryViewCell()
 {
     Nib = UINib.FromName("GalleryDirectoryViewCell", NSBundle.MainBundle);
 }
 static HelpTableViewImageCell()
 {
     Nib = UINib.FromName("HelpTableViewImageCell", NSBundle.MainBundle);
 }
Example #23
0
		static StatViewCell ()
		{
			Nib = UINib.FromName ("StatViewCell", NSBundle.MainBundle);
		}
Example #24
0
 static GalleryItemPhotoViewCell()
 {
     Nib = UINib.FromName("GalleryItemPhotoViewCell", NSBundle.MainBundle);
 }
 static EigenschappenTableViewCell()
 {
     Nib = UINib.FromName ("EigenschappenTableViewCell", NSBundle.MainBundle);
 }
Example #26
0
 static RecentSearchesCell()
 {
     Nib = UINib.FromName("RecentSearchesCell", NSBundle.MainBundle);
 }
 static NormalTableViewCell()
 {
     Nib = UINib.FromName ("NormalTableViewCell", NSBundle.MainBundle);
 }
Example #28
0
 static ChallengesTableViewCell()
 {
     Nib = UINib.FromName(ClassName, NSBundle.MainBundle);
 }
Example #29
0
		static HistoryViewCell ()
		{
			Nib = UINib.FromName ("HistoryViewCell", NSBundle.MainBundle);
		}
Example #30
0
 static ArticleCell()
 {
     Nib = UINib.FromName("ArticleCell", NSBundle.MainBundle);
 }
Example #31
0
 static DownloadCell()
 {
     Nib = UINib.FromName("DownloadCell", NSBundle.MainBundle);
 }
 public override void ViewDidLoad()
 {
     base.ViewDidLoad();
     TableView.RegisterNibForCellReuse(UINib.FromName("boxViewCell", null), cellIdentifier);
 }
Example #33
0
 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;
        }
Example #36
0
 static ClientViewCell()
 {
     Nib = UINib.FromName(nameof(ClientViewCell), NSBundle.MainBundle);
 }
Example #37
0
 static ReportsCalendarQuickSelectViewCell()
 {
     Nib = UINib.FromName(nameof(ReportsCalendarQuickSelectViewCell), NSBundle.MainBundle);
 }
Example #38
0
 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);
 }
Example #42
0
 static CurrentTradesCompany()
 {
     Nib = UINib.FromName("CurrentTradesCompany", NSBundle.MainBundle);
 }
 static NotificationCell()
 {
     Nib = UINib.FromName ("NotificationCell", NSBundle.MainBundle);
 }
Example #44
0
 static DateFormatViewCell()
 {
     Nib = UINib.FromName(nameof(DateFormatViewCell), NSBundle.MainBundle);
 }
 static TotemsTableViewCell()
 {
     Nib = UINib.FromName ("TotemsTableViewCell", NSBundle.MainBundle);
 }
Example #46
0
 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);
 }
Example #51
0
 static PostingMapCell()
 {
     Nib = UINib.FromName("PostingMapCell", NSBundle.MainBundle);
 }
 static PostingImageCollectionCell()
 {
     Nib = UINib.FromName("PostingImageCollectionCell", NSBundle.MainBundle);
 }
Example #53
0
 static ReportsLegendViewCell()
 {
     Nib = UINib.FromName(nameof(ReportsLegendViewCell), NSBundle.MainBundle);
 }
Example #54
0
 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);
 }
Example #58
0
 static ReportsHeaderView()
 {
     Nib = UINib.FromName(nameof(ReportsHeaderView), NSBundle.MainBundle);
 }
		static ImagePostTableViewCell ()
		{
			Nib = UINib.FromName ("ImagePostTableViewCell", NSBundle.MainBundle);
		}
Example #60
0
 static UIVerticalTabbarViewCell()
 {
     Nib = UINib.FromName("UIVerticalTabbarViewCell", NSBundle.MainBundle);
 }