You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
1.3 KiB
50 lines
1.3 KiB
namespace Ohara;
|
|
|
|
|
|
using Model;
|
|
using Model.Stub;
|
|
using Plugin.Maui.Audio;
|
|
using System.Windows.Input;
|
|
|
|
public partial class PageFDD : ContentPage
|
|
{
|
|
public ICommand FiltrerType { get; private set; }
|
|
public Manager manager => (App.Current as App).manager;
|
|
public PageFDD()
|
|
{
|
|
|
|
InitializeComponent();
|
|
listeFDD.ItemsSource = manager.GetFruits();
|
|
void OnTextChanged(object sender, EventArgs e)
|
|
{
|
|
SearchBar searchBar = (SearchBar)sender;
|
|
listeFDD.ItemsSource = manager.RechercheFDD(searchBar.Text,manager.GetFruits());
|
|
}
|
|
searchBar.TextChanged += OnTextChanged;
|
|
FiltrerType = new Command((type) => listeFDD.ItemsSource = manager.FiltrerFDD(type.ToString()));
|
|
//Logia.Command = FiltrerType;
|
|
//Logia.CommandParameter = "Logia";
|
|
|
|
}
|
|
|
|
private void listeFDD_ScrollToRequested(object sender, ScrollToRequestEventArgs e)
|
|
{
|
|
|
|
}
|
|
|
|
private void MenuFlyoutItem_Clicked(object sender, EventArgs e)
|
|
{
|
|
|
|
}
|
|
|
|
private void Label_Focused(object sender, FocusEventArgs e)
|
|
{
|
|
|
|
}
|
|
|
|
async void listeFDD_SelectionChanged(object sender, SelectionChangedEventArgs e)
|
|
{
|
|
|
|
await Navigation.PushAsync(new PageInfoFdd((FruitDuDemon)listeFDD.SelectedItem));
|
|
}
|
|
} |