private void txtsearchbyblockname_TextChanged(object sender, dotMorten.Xamarin.Forms.AutoSuggestBoxTextChangedEventArgs e) { try { if (e.Reason == dotMorten.Xamarin.Forms.AutoSuggestionBoxTextChangeReason.UserInput) { blockModels = new ObservableCollection <BlockModel>(); if (vm.BlockModelList != null) { foreach (var items in vm.BlockModelList) { if (!string.IsNullOrEmpty(items.name)) { if (!string.IsNullOrEmpty(txtsearchbyblockname.Text)) { if (items.name.ToUpper().StartsWith(txtsearchbyblockname.Text.ToUpper()) || items.name.ToLower().StartsWith(txtsearchbyblockname.Text.ToLower())) { blockModels.Add(items); } } } } txtsearchbyblockname.ItemsSource = blockModels; } } } catch { } }
private void txtsearchbyhostel_TextChanged(object sender, dotMorten.Xamarin.Forms.AutoSuggestBoxTextChangedEventArgs e) { //try //{ // if (e.Reason == dotMorten.Xamarin.Forms.AutoSuggestionBoxTextChangeReason.UserInput) // { // hostelModels = new ObservableCollection<HostelModel>(); // if (vm.HostelLists != null) // { // foreach (var items in vm.HostelLists) // { // if (!string.IsNullOrEmpty(items.hostelName)) // { // if (!string.IsNullOrEmpty(txtsearchbyhostel.Text)) // { // if (items.hostelName.ToUpper().StartsWith(txtsearchbyhostel.Text.ToUpper()) || items.hostelName.ToLower().StartsWith(txtsearchbyhostel.Text.ToLower())) // hostelModels.Add(items); // } // } // } // txtsearchbyhostel.ItemsSource = hostelModels; // } // } //} //catch //{ //} }
private void txtsearchbydisciplinarytype_TextChanged(object sender, dotMorten.Xamarin.Forms.AutoSuggestBoxTextChangedEventArgs e) { try { if (e.Reason == dotMorten.Xamarin.Forms.AutoSuggestionBoxTextChangeReason.UserInput) { viewDisciplinaryTypes = new ObservableCollection <Models.ViewDisciplinaryType>(); if (vm.ViewDisciplinaryTypes != null) { foreach (var items in vm.ViewDisciplinaryTypes) { if (!string.IsNullOrEmpty(items.name)) { if (!string.IsNullOrEmpty(txtsearchbydisciplinarytype.Text)) { if (items.name.ToUpper().StartsWith(txtsearchbydisciplinarytype.Text.ToUpper()) || items.name.ToLower().StartsWith(txtsearchbydisciplinarytype.Text.ToLower())) { viewDisciplinaryTypes.Add(items); } } } } txtsearchbydisciplinarytype.ItemsSource = viewDisciplinaryTypes; } } } catch { } }
private void txtsearchbycourse_TextChanged(object sender, dotMorten.Xamarin.Forms.AutoSuggestBoxTextChangedEventArgs e) { try { if (e.Reason == dotMorten.Xamarin.Forms.AutoSuggestionBoxTextChangeReason.UserInput) { courseDetailModels = new ObservableCollection <CourseDetailModel>(); if (vm.CourseDetailModels != null) { foreach (var items in vm.CourseDetailModels) { if (!string.IsNullOrEmpty(items.courseName)) { if (!string.IsNullOrEmpty(txtsearchbycourse.Text)) { if (items.courseName.ToUpper().StartsWith(txtsearchbycourse.Text.ToUpper()) || items.courseName.ToLower().StartsWith(txtsearchbycourse.Text.ToLower())) { courseDetailModels.Add(items); } } } } txtsearchbycourse.ItemsSource = courseDetailModels; } } } catch (Exception ex) { } }
private void txtsearchbybedname_TextChanged(object sender, dotMorten.Xamarin.Forms.AutoSuggestBoxTextChangedEventArgs e) { try { if (e.Reason == dotMorten.Xamarin.Forms.AutoSuggestionBoxTextChangeReason.UserInput) { roomBedDatas = new ObservableCollection <RoomBedData>(); if (vm.RoomBedDatas != null) { foreach (var items in vm.RoomBedDatas) { if (!string.IsNullOrEmpty(items.bedNo)) { if (!string.IsNullOrEmpty(txtsearchbyroombed.Text)) { if (items.bedNo.ToUpper().StartsWith(txtsearchbyroombed.Text.ToUpper()) || items.bedNo.ToLower().StartsWith(txtsearchbyroombed.Text.ToLower())) { roomBedDatas.Add(items); } } } } txtsearchbyroombed.ItemsSource = roomBedDatas; } } } catch { } }
private void txtsearchbystudentname_TextChanged(object sender, dotMorten.Xamarin.Forms.AutoSuggestBoxTextChangedEventArgs e) { try { if (e.Reason == dotMorten.Xamarin.Forms.AutoSuggestionBoxTextChangeReason.UserInput) { viewDisciplinaryActionbywardens = new ObservableCollection <ViewDisciplinaryActionbywarden>(); if (vm.DisciplinaryActionbywardens != null) { foreach (var items in vm.DisciplinaryActionbywardens) { if (!string.IsNullOrEmpty(items.studentName)) { if (!string.IsNullOrEmpty(txtsearchbystudentname.Text)) { if (items.studentName.ToUpper().StartsWith(txtsearchbystudentname.Text.ToUpper()) || items.studentName.ToLower().StartsWith(txtsearchbystudentname.Text.ToLower())) { viewDisciplinaryActionbywardens.Add(items); } } } } txtsearchbystudentname.ItemsSource = viewDisciplinaryActionbywardens; } } } catch (Exception ex) { } }
private void txtsearchbyservicename_TextChanged(object sender, dotMorten.Xamarin.Forms.AutoSuggestBoxTextChangedEventArgs e) { try { if (e.Reason == dotMorten.Xamarin.Forms.AutoSuggestionBoxTextChangeReason.UserInput) { wardenServiceModels = new ObservableCollection <WardenServiceModel>(); if (serviceCategory.WardenServiceData != null) { foreach (var items in serviceCategory.WardenServiceData) { if (!string.IsNullOrEmpty(items.name)) { if (!string.IsNullOrEmpty(txtsearchbyservicename.Text)) { if (items.name.ToUpper().StartsWith(txtsearchbyservicename.Text.ToUpper()) || items.name.ToLower().StartsWith(txtsearchbyservicename.Text.ToLower())) { wardenServiceModels.Add(items); } } } } txtsearchbyservicename.ItemsSource = wardenServiceModels; } } } catch { } }
private void txtsearchbyfloorname_TextChanged(object sender, dotMorten.Xamarin.Forms.AutoSuggestBoxTextChangedEventArgs e) { try { if (e.Reason == dotMorten.Xamarin.Forms.AutoSuggestionBoxTextChangeReason.UserInput) { floorDatas = new ObservableCollection <FloorData>(); if (vm.FloorModelList != null) { foreach (var items in vm.FloorModelList) { if (!string.IsNullOrEmpty(items.floorNo)) { if (!string.IsNullOrEmpty(txtsearchbyfloorname.Text)) { if (items.floorNo.ToUpper().StartsWith(txtsearchbyfloorname.Text.ToUpper()) || items.floorNo.ToLower().StartsWith(txtsearchbyfloorname.Text.ToLower())) { floorDatas.Add(items); } } } } txtsearchbyfloorname.ItemsSource = floorDatas; } } } catch (Exception ex) { } }
private void txtsearchbykeyword_TextChanged(object sender, dotMorten.Xamarin.Forms.AutoSuggestBoxTextChangedEventArgs e) { //try //{ // if (e.Reason == dotMorten.Xamarin.Forms.AutoSuggestionBoxTextChangeReason.UserInput) // { // WardenServiceData = new ObservableCollection<WardenServiceModel>(); // if (vm.WardenServiceData != null) // { // foreach (var items in vm.WardenServiceData) // { // if (!string.IsNullOrEmpty(items.name)) // { // if (!string.IsNullOrEmpty(txtsearchbykeyword.Text)) // { // if (items.name.ToUpper().StartsWith(txtsearchbykeyword.Text.ToUpper()) || items.name.ToLower().StartsWith(txtsearchbykeyword.Text.ToLower())) // WardenServiceData.Add(items); // } // } // } // txtsearchbykeyword.ItemsSource = WardenServiceData; // } // } //} //catch //{ //} }
private void AutoSugg_TextChanged(object sender, dotMorten.Xamarin.Forms.AutoSuggestBoxTextChangedEventArgs e) { if (autoSugg.Text != null && autoSugg.Text != "") { autoSugg.ItemsSource = DataModel.Symptoms.Where(x => x.SymptomName.ToLower().Contains(autoSugg.Text.ToLower())).Select(x => x.SymptomName).ToArray(); } }
private void txtsearchbykeyword_TextChanged(object sender, dotMorten.Xamarin.Forms.AutoSuggestBoxTextChangedEventArgs e) { try { } catch (Exception ex) { } }
private void grupaSuggetstBox_TextChanged(object sender, dotMorten.Xamarin.Forms.AutoSuggestBoxTextChangedEventArgs e) { if (GrupaList != null) { grupaSuggetstBox.ItemsSource = string.IsNullOrWhiteSpace(grupaSuggetstBox.Text) ? null : GrupaList.Where(filter => filter.StartsWith(grupaSuggetstBox.Text, StringComparison.InvariantCultureIgnoreCase)).ToList(); } }
private void kotrahentSugestsBox_TextChanged(object sender, dotMorten.Xamarin.Forms.AutoSuggestBoxTextChangedEventArgs e) { try { if (KontrahentList != null) { kotrahentSugestsBox.ItemsSource = string.IsNullOrWhiteSpace(kotrahentSugestsBox.Text) ? null : KontrahentList.Where(filter => filter.StartsWith(kotrahentSugestsBox.Text, StringComparison.InvariantCultureIgnoreCase)).ToList(); } } catch (Exception) { throw; } }
private void AutoSuggestBox_TextChanged(object sender, XAutoSuggestBoxTextChangedEventArgs e) { Element?.NativeControlTextChanged(Control.Text, (AutoSuggestionBoxTextChangeReason)e.Reason); }
private void txtsearchbyarea_TextChanged(object sender, dotMorten.Xamarin.Forms.AutoSuggestBoxTextChangedEventArgs e) { }