Пример #1
0
 public override void ViewDidLoad()
 {
     base.ViewDidLoad();
     NavigarionBarSetup();
     UsersTableView.RowHeight          = UITableView.AutomaticDimension;
     UsersTableView.EstimatedRowHeight = 40f;
     UsersTableView.ReloadData();
 }
Пример #2
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            string role       = "";
            string searchText = "";

            LoadingScreen.Show();

            var apiCall = new ServiceApi().GetUserLocation(21.17024, 72.831062, searchText, role);

            apiCall.HandleError(null, true);
            apiCall.OnSucess(response =>
            {
                LoadingScreen.Hide();

                List <UserProfileModel> data = new List <UserProfileModel>();

                for (var i = 0; i < response.Result.RecordList.Count; i++)
                {
                    var result = response.Result.RecordList[i];
                    data.Add(new UserProfileModel
                    {
                        DisplayName = result.DisplayName,
                        PhoneNumber = result.PhoneNumber,
                        Image       = result.Image,
                        Address1    = result.Address1
                    });
                }

                //foreach(var item in response.Result.RecordList)
                //{
                //    data.Add(new UserProfileModel
                //    {
                //        DisplayName = item.DisplayName,
                //        PhoneNumber = item.PhoneNumber,
                //        Image = item.Image,
                //        Address1 = item.Address1
                //    });
                //}

                UsersTableView.Source             = new UsersTableViewSource(data);
                UsersTableView.RowHeight          = UITableView.AutomaticDimension;
                UsersTableView.SeparatorColor     = UIColor.Clear;
                UsersTableView.EstimatedRowHeight = 50f;
                UsersTableView.ReloadData();
            });
        }
Пример #3
0
        public override void ViewDidLoad()
        {
            Title = "Users";
            NavigationItem.HidesBackButton = true;

            base.ViewDidLoad();

            _source = new UserTableSource(UsersTableView);

            UsersTableView.Source         = _source;
            UsersTableView.RowHeight      = 86f;
            UsersTableView.SeparatorStyle = UITableViewCellSeparatorStyle.None;
            UsersTableView.ReloadData();

            InitBarButtons();
            Binding();
        }
Пример #4
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            _source = new UserTableSource(UsersTableView);

            UsersTableView.TableHeaderView = UserHeader;

            UsersTableView.Source         = _source;
            UsersTableView.RowHeight      = 86f;
            UsersTableView.SeparatorStyle = UITableViewCellSeparatorStyle.None;
            UsersTableView.ReloadData();

            Status.Layer.CornerRadius = Status.Frame.Height / 2;

            Binding();

            View.BackgroundColor = UIColor.White;
        }