public DangKyMoiGioiContentView(BottomModal bottomModal, Guid moiGioiId) { InitializeComponent(); BindingContext = viewModel = new DangKyMoiGioiContentViewViewModel(); lookupType.BottomModal = lookupProvince.BottomModal = lookupDistrict.BottomModal = bottomModal; Init(moiGioiId); }
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(); }
public AddLoanView(BottomModal modal, Guid Id) { InitializeComponent(); this.BindingContext = viewModel = new AddGoiVayViewModel(); InitSync(modal); Init(); InitUpdate(Id); loadingPopup.IsVisible = false; }
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(); }
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(); }