/// <summary> /// Handles the SelectionChanged event of the Menu control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="Syncfusion.ListView.XForms.ItemSelectionChangedEventArgs"/> instance containing the event data.</param> private async void Menu_SelectionChanged(object sender, Syncfusion.ListView.XForms.ItemSelectionChangedEventArgs e) { switch (menuListView.SelectedItem) { case "Transaction History": await PopupNavigation.Instance.PopAsync(); landingPageViewModel.NavigateToTransactionPage = true; await landingPageViewModel.GetTransactionHistory(); break; case "Today's Price": await PopupNavigation.Instance.PopAsync(); await landingPageViewModel.GetTodaysMarketPrice(); break; case "Profit/Loss": await PopupNavigation.Instance.PopAsync(); await landingPageViewModel.GetProfitLoss(); break; default: break; } }
async void Handle_SelectionChanged(object sender, Syncfusion.ListView.XForms.ItemSelectionChangedEventArgs e) { ProductItemViewModel product = null; switch (ProductFilters.Instance.ProductType) { case ProductType.Deleted: product = (ProductItemViewModel)deletedProduct.SelectedItem; break; case ProductType.Expired: product = (ProductItemViewModel)expiredProduct.SelectedItem; break; case ProductType.WillBeExpired: product = (ProductItemViewModel)onExpiringProduct.SelectedItem; break; default: product = (ProductItemViewModel)productList.SelectedItem; break; } ProductFilters.Instance.IsLoadPreviousPosition = true; await Navigation.PushAsync(new ProductViewPage(product)); }
private void SfitemsListView_SelectionChanged(object sender, Syncfusion.ListView.XForms.ItemSelectionChangedEventArgs e) { SelectedItem = (Item)SfitemsListView.SelectedItem; if (SelectedItem != null) { Navigation.PushAsync(new AddingItemsPage(SelectedItem)); } }
async void LocationList_SelectionChanged(object sender, Syncfusion.ListView.XForms.ItemSelectionChangedEventArgs e) { var categoryFilters = ProductFilters.Instance; categoryFilters.PageIndex = 1; categoryFilters.IsFromFilters = true; SetFiltersParams(categoryFilters); await Navigation.PushAsync(new ProductPage()); }
private void appListView_SelectionChanged(object sender, Syncfusion.ListView.XForms.ItemSelectionChangedEventArgs e) { var item = e.AddedItems[0] as AppModel; if (item.PackageName.Equals("com.companyname.ttp")) { return; } DependencyService.Get <IOpenAppService>().Launch(item.PackageName); }
private void ItemsListView_SelectionChanged(object sender, Syncfusion.ListView.XForms.ItemSelectionChangedEventArgs e) { //if (ItemsListView2.SelectedItem != null) //{ // if (((Item) ItemsListView2.SelectedItem).Nome.Contains("Nova Tarefa")) // { // Session.Navigation.Navigation.PushAsync(new NovaTarefa()); // } //} }
private void ToggleButton(object sender, Syncfusion.ListView.XForms.ItemSelectionChangedEventArgs e) { if (HandListView.SelectedItems.Count == game.CallCard.Blanks && !WaitingLabel.IsVisible) { PlayCardButton.IsEnabled = true; } else { PlayCardButton.IsEnabled = false; } }
private async void ItemsListView_SelectionChanged(object sender, Syncfusion.ListView.XForms.ItemSelectionChangedEventArgs e) { var item = ItemsListView.SelectedItem as Item; string tipo; tipo = "NaoLidas"; if (item == null) { return; } if (item.Text.Contains("Tarefas não Lidas")) { tipo = "NaoLidas"; } if (item.Text.Contains("Fazer Hoje")) { tipo = "FazerHoje"; } if (item.Text.Contains("Validar")) { tipo = "Validar"; } if (item.Text.Contains("Anotações")) { tipo = "Anotar"; } if (item.Text.Contains("Atraso")) { tipo = "Atraso"; } if (item.Text.Contains("Adicionar")) { tipo = "Adicionar"; var url = "http://www.controlesonline.com.br"; Device.OpenUri(new Uri(url)); } if (tipo != "Adicionar") { await Navigation.PushAsync(new ItemDetailPage(new ItemDetailViewModel(item), tipo, Constants.UserCod.ToString())); // Manually deselect item ItemsListView.SelectedItem = null; } }
private void sfListView_SelectionChanged(object sender, Syncfusion.ListView.XForms.ItemSelectionChangedEventArgs e) { if (sfListView.SelectedItem != null) { var item_selected = sfListView.SelectedItem as RFIDPairing; //barcode.Text = item_selected.ItemID; labelItemName.Text = string.Format("Item Name : {0}", item_selected.ItemName); labelItemID.Text = string.Format("Item ID : {0}", item_selected.ItemID); labelQty.Text = string.Format("Qty : {0}", item_selected.Qty); labelBox.Text = string.Format("Box Type : {0}", item_selected.BoxType); labelRFID.Text = string.Format("RFID : {0}", item_selected.RFID); labelDivOwner.Text = string.Format("Milik Divisi : {0}", item_selected.DivOwner); string color = Convert.ToString(item_selected.Color); if (color == "Color [A=255, R=0, G=0, B=0]") ///RED { labelItemName.TextColor = Color.Red; labelItemID.TextColor = Color.Red; labelQty.TextColor = Color.Red; labelBox.TextColor = Color.Red; labelRFID.TextColor = Color.Red; labelDivOwner.TextColor = Color.Red; remark.TextColor = Color.Red; remark.Text = "Barang Bukan Milik EPSON"; } else { labelItemName.TextColor = Color.Black; labelItemID.TextColor = Color.Black; labelQty.TextColor = Color.Black; labelBox.TextColor = Color.Black; labelRFID.TextColor = Color.Black; labelDivOwner.TextColor = Color.Black; remark.TextColor = Color.Black; remark.Text = "OK"; } } }
private void CV_SelectionChanged(object sender, Syncfusion.ListView.XForms.ItemSelectionChangedEventArgs e) { UpdateSelectionData(e.AddedItems); }