Exemple #1
0
 public DangKyMoiGioiContentView(BottomModal bottomModal, Guid moiGioiId)
 {
     InitializeComponent();
     BindingContext         = viewModel = new DangKyMoiGioiContentViewViewModel();
     lookupType.BottomModal = lookupProvince.BottomModal = lookupDistrict.BottomModal = bottomModal;
     Init(moiGioiId);
 }
Exemple #2
0
 public void InitSync(BottomModal modal)
 {
     this.MaxTimeLookUp.ItemsSource     = viewModel.MaxTimeOptions;
     this.MaxTimeUnitLookUp.ItemsSource = viewModel.MaxTimeUnitOptions;
     this.MaxTimeLookUp.BottomModal     = this.MaxTimeUnitLookUp.BottomModal = modal;
     this.MaxTimeUnitLookUp.HideClearButton();
 }
 public DangKyNhanVienNganHangView(BottomModal bottomModal)
 {
     InitializeComponent();
     this.BindingContext    = viewModel = new DangKyNhanVienNganHangViewModel();
     lookupBank.BottomModal = lookupProvince.BottomModal = lookupDistrict.BottomModal = bottomModal;
     Init();
     InitAdd();
 }
Exemple #4
0
 public AddLoanView(BottomModal modal, Guid Id)
 {
     InitializeComponent();
     this.BindingContext = viewModel = new AddGoiVayViewModel();
     InitSync(modal);
     Init();
     InitUpdate(Id);
     loadingPopup.IsVisible = false;
 }
Exemple #5
0
        private async void ListView0_ItemTapped(object sender, ItemTappedEventArgs e)
        {
            var item = e.Item as SundihomeApi.Entities.Post;
            var post = new SundihomeApi.Entities.Mongodb.Post()
            {
                PostId    = item.Id.ToString(),
                Title     = item.Title,
                PriceText = item.PriceFormatText,
                Avatar    = item.Avatar,
                Address   = item.Address
            };

            viewModel.InternalPost = post;
            await BottomModal.Hide();
        }
Exemple #6
0
        private async void PickerPost_Clicked(object sender, EventArgs e)
        {
            loadingPopup.IsVisible = true;

            if (searchPageResultViewModel == null) // chua bat popup lan nao.
            {
                this.ListView0.ItemTapped            += ListView0_ItemTapped;;
                searchPageResultViewModel             = new ListViewPageViewModel2 <SundihomeApi.Entities.Post>();
                searchPageResultViewModel.PreLoadData = new Command(() =>
                {
                    searchPageResultViewModel.ApiUrl = ApiRouter.COMPANY_GETPOSTLIST + $"?CompanyId={UserLogged.CompanyId}&Keyword={viewModel.PostKeyword}&page={searchPageResultViewModel.Page}&Status=2";
                });
                this.ListView0.BindingContext = searchPageResultViewModel;
            }
            else
            {
                viewModel.PostKeyword    = null;
                ModalPopupSearchBar.Text = null;
            }
            await searchPageResultViewModel.LoadOnRefreshCommandAsync();

            loadingPopup.IsVisible = false;
            await BottomModal.Show();
        }