Пример #1
0
 static RouteCell()
 {
     Nib = UINib.FromName("RouteCell", NSBundle.MainBundle);
 }
Пример #2
0
 static SuggestionsViewCell()
 {
     Nib = UINib.FromName(nameof(SuggestionsViewCell), NSBundle.MainBundle);
 }
 public override void ViewDidLoad()
 {
     base.ViewDidLoad();
     TableView.RegisterNibForCellReuse(UINib.FromName("MyTableViewCell", null), cellIdentifier);
 }
Пример #4
0
 static ProductCell()
 {
     Nib = UINib.FromName("ProductCell", NSBundle.MainBundle);
 }
Пример #5
0
 static OrderCell()
 {
     Nib = UINib.FromName("OrderCell", NSBundle.MainBundle);
 }
 static PediatricsSpecificDescriptionTableViewCell()
 {
     Nib = UINib.FromName("PediatricsSpecificDescriptionTableViewCell", NSBundle.MainBundle);
 }
Пример #7
0
 static ReservationCell()
 {
     Nib = UINib.FromName("ReservationCell", NSBundle.MainBundle);
 }
Пример #8
0
 static ToolCard()
 {
     Nib = UINib.FromName("ToolCard", NSBundle.MainBundle);
 }
Пример #9
0
 static GoHejaEventCell()
 {
     Nib = UINib.FromName("NitroEventCell", NSBundle.MainBundle);
 }
Пример #10
0
 static TimeEntriesLogHeaderView()
 {
     Nib = UINib.FromName(nameof(TimeEntriesLogHeaderView), NSBundle.MainBundle);
 }
 static MyCollectionViewCell()
 {
     Nib = UINib.FromName("MyCollectionViewCell", NSBundle.MainBundle);
 }
Пример #12
0
 static MessagesDateHeaderViewCell()
 {
     Nib = UINib.FromName(nameof(MessagesDateHeaderViewCell), NSBundle.MainBundle);
 }
Пример #13
0
 static SelectableUserCalendarViewCell()
 {
     Nib = UINib.FromName(nameof(SelectableUserCalendarViewCell), NSBundle.MainBundle);
 }
Пример #14
0
 static GalleryItemPhotoViewCell()
 {
     Nib = UINib.FromName("GalleryItemPhotoViewCell", NSBundle.MainBundle);
 }
Пример #15
0
 static EditingHourSupplementaryView()
 {
     Nib = UINib.FromName("EditingHourSupplementaryView", NSBundle.MainBundle);
 }
 static ReportsCalendarQuickSelectViewCell()
 {
     Nib = UINib.FromName(nameof(ReportsCalendarQuickSelectViewCell), NSBundle.MainBundle);
 }
 static BaseChecklistTableViewCell()
 {
     Nib = UINib.FromName("BaseChecklistTableViewCell", NSBundle.MainBundle);
 }
Пример #18
0
 static NoEntityInfoViewCell()
 {
     Nib = UINib.FromName(nameof(NoEntityInfoViewCell), NSBundle.MainBundle);
 }
Пример #19
0
 public OperationalCertTableViewSource(UITableView tableView, PersonalProfileView personalProfileView, EditProfileView editProfileView) : base(tableView)
 {
     tableView.RegisterNibForCellReuse(UINib.FromName("OperationalCertTableViewCell", NSBundle.MainBundle), OperationalCertTableViewCell.Key);
     mPersonalProfileView = personalProfileView;
     mEditProfileView     = editProfileView;
 }
Пример #20
0
 static FeedCollectionViewCell()
 {
     Nib = UINib.FromName(nameof(FeedCollectionViewCell), NSBundle.MainBundle);
 }
Пример #21
0
 static SelectableTagViewCell()
 {
     Nib = UINib.FromName(nameof(SelectableTagViewCell), NSBundle.MainBundle);
 }
Пример #22
0
 public MenuViewSource(MenuView menuView, UITableView tableView) : base(tableView)
 {
     this.menuView = menuView;
     tableView.RegisterNibForCellReuse(UINib.FromName("MenuProfileView", NSBundle.MainBundle), MenuProfileView.Key);
     tableView.RegisterNibForCellReuse(UINib.FromName("MenuItemCell", NSBundle.MainBundle), MenuItemCell.Key);
 }
Пример #23
0
 static CustomImageTableCell()
 {
     Nib = UINib.FromName("CustomImageTableCell", NSBundle.MainBundle);
 }
Пример #24
0
 static TableViewHeaderCell()
 {
     Nib = UINib.FromName("TableViewHeaderCell", NSBundle.MainBundle);
 }
Пример #25
0
 static ClientViewCell()
 {
     Nib = UINib.FromName(nameof(ClientViewCell), NSBundle.MainBundle);
 }
Пример #26
0
 static TableCell()
 {
     Nib = UINib.FromName("TableCell", NSBundle.MainBundle);
 }
Пример #27
0
 static MyTableViewCell()
 {
     Nib = UINib.FromName("MyTableViewCell", NSBundle.MainBundle);
 }
 public SMSInboxTableViewSource(UITableView tableView, NSString cellIdentifier) : base(tableView, new NSString("SMSInboxViewCell"))
 {
     DeselectAutomatically = false;
     tableView.RegisterNibForCellReuse(UINib.FromName("SMSInboxViewCell", NSBundle.MainBundle),
                                       cellIdentifier);
 }
Пример #29
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();
            nsfwSwitch.On     = AppSettings.User.IsNsfw;
            lowRatedSwitch.On = AppSettings.User.IsLowRated;

            versionLabel.Font         = Constants.Regular12;
            notificationSettings.Font = reportButton.Font = termsButton.Font = guideButton.Font = lowRatedLabel.Font = nsfwLabel.Font = addAccountButton.TitleLabel.Font = Constants.Semibold14;
            Constants.CreateShadow(addAccountButton, Constants.R231G72B0, 0.5f, 25, 10, 12);

            _tableSource             = new AccountsTableViewSource();
            _tableSource.Accounts    = AppSettings.User.GetAllAccounts();
            _tableSource.CellAction += CellAction;

            accountsTable.Source        = _tableSource;
            accountsTable.LayoutMargins = UIEdgeInsets.Zero;
            accountsTable.RegisterClassForCellReuse(typeof(AccountTableViewCell), nameof(AccountTableViewCell));
            accountsTable.RegisterNibForCellReuse(UINib.FromName(nameof(AccountTableViewCell), NSBundle.MainBundle), nameof(AccountTableViewCell));
            accountsTable.RowHeight = 60f;

            lowRatedSwitch.Layer.CornerRadius = nsfwSwitch.Layer.CornerRadius = 16;

            var forwardImage  = new UIImageView();
            var forwardImage2 = new UIImageView();
            var forwardImage3 = new UIImageView();
            var forwardImage4 = new UIImageView();

            forwardImage4.Image = forwardImage2.Image = forwardImage3.Image = forwardImage.Image = UIImage.FromBundle("ic_forward");
            guideButton.AddSubview(forwardImage);
            termsButton.AddSubview(forwardImage2);
            reportButton.AddSubview(forwardImage3);
            notificationSettings.AddSubview(forwardImage4);

            forwardImage.AutoAlignAxisToSuperviewAxis(ALAxis.Horizontal);
            forwardImage.AutoPinEdgeToSuperviewEdge(ALEdge.Right, 0f);

            forwardImage2.AutoAlignAxisToSuperviewAxis(ALAxis.Horizontal);
            forwardImage2.AutoPinEdgeToSuperviewEdge(ALEdge.Right, 0f);

            forwardImage3.AutoAlignAxisToSuperviewAxis(ALAxis.Horizontal);
            forwardImage3.AutoPinEdgeToSuperviewEdge(ALEdge.Right, 0f);

            forwardImage4.AutoAlignAxisToSuperviewAxis(ALAxis.Horizontal);
            forwardImage4.AutoPinEdgeToSuperviewEdge(ALEdge.Right, 0f);

            var appInfoService = AppSettings.Container.Resolve <IAppInfo>();

            versionLabel.Text = AppSettings.LocalizationManager.GetText(LocalizationKeys.AppVersion, appInfoService.GetAppVersion(), appInfoService.GetBuildVersion());

            reportButton.TouchDown         += SendReport;
            termsButton.TouchDown          += ShowTos;
            guideButton.TouchDown          += ShowGuide;
            notificationSettings.TouchDown += (object sender, EventArgs e) =>
            {
                NavigationController.PushViewController(new NotificationSettingsController(), true);
            };
            lowRatedSwitch.ValueChanged += SwitchLowRated;
            nsfwSwitch.ValueChanged     += SwitchNSFW;
            SetBackButton();
            _presenter.SubscriptionsUpdated += _presenter_SubscriptionsUpdated;
            _presenter.TryCheckSubscriptions();
#if !DEBUG
            lowRatedLabel.Hidden = nsfwLabel.Hidden = nsfwSwitch.Hidden = lowRatedSwitch.Hidden = true;
#endif
        }
Пример #30
0
 static TaskCellViewController()
 {
     TaskKey = new NSString(Constants.TaskCell);
     TaskNib = UINib.FromName(Constants.TaskCell, NSBundle.MainBundle);
 }