diff --git a/sources/PocketBook/Auteur.xaml b/sources/PocketBook/Auteur.xaml deleted file mode 100644 index 6a7c99b..0000000 --- a/sources/PocketBook/Auteur.xaml +++ /dev/null @@ -1,69 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/sources/PocketBook/BookDetail.xaml b/sources/PocketBook/BookDetail.xaml deleted file mode 100644 index b9971bd..0000000 --- a/sources/PocketBook/BookDetail.xaml +++ /dev/null @@ -1,108 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sources/PocketBook/ContentViewBook.xaml b/sources/PocketBook/ContentViewBook.xaml deleted file mode 100644 index 8241489..0000000 --- a/sources/PocketBook/ContentViewBook.xaml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - - diff --git a/sources/PocketBook/MainPage.xaml b/sources/PocketBook/MainPage.xaml deleted file mode 100644 index e207639..0000000 --- a/sources/PocketBook/MainPage.xaml +++ /dev/null @@ -1,66 +0,0 @@ - - - - - - - - - - - - diff --git a/sources/PocketBook/MainPage.xaml.cs b/sources/PocketBook/MainPage.xaml.cs deleted file mode 100644 index aa64cc6..0000000 --- a/sources/PocketBook/MainPage.xaml.cs +++ /dev/null @@ -1,24 +0,0 @@ -namespace PocketBook; - -public partial class MainPage : ContentPage -{ - public MainPage() - { - InitializeComponent(); - } - - private async void OnContentViewFilterTappedTous(object sender, EventArgs e) - { - await Navigation.PushAsync(new TousPage()); - } - private async void OnContentViewFilterTappedAuteur(object sender, EventArgs e) - { - await Navigation.PushAsync(new Auteur()); - } - - private async void OnContentViewFilterTappedDate(object sender,EventArgs e) - { - await Navigation.PushAsync(new DatePublic()); - } -} - diff --git a/sources/PocketBook/Pages/Auteur.xaml b/sources/PocketBook/Pages/Auteur.xaml new file mode 100644 index 0000000..602985b --- /dev/null +++ b/sources/PocketBook/Pages/Auteur.xaml @@ -0,0 +1,61 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sources/PocketBook/Auteur.xaml.cs b/sources/PocketBook/Pages/Auteur.xaml.cs similarity index 100% rename from sources/PocketBook/Auteur.xaml.cs rename to sources/PocketBook/Pages/Auteur.xaml.cs diff --git a/sources/PocketBook/Pages/BookDetail.xaml b/sources/PocketBook/Pages/BookDetail.xaml new file mode 100644 index 0000000..db0d46b --- /dev/null +++ b/sources/PocketBook/Pages/BookDetail.xaml @@ -0,0 +1,105 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sources/PocketBook/BookDetail.xaml.cs b/sources/PocketBook/Pages/BookDetail.xaml.cs similarity index 100% rename from sources/PocketBook/BookDetail.xaml.cs rename to sources/PocketBook/Pages/BookDetail.xaml.cs diff --git a/sources/PocketBook/BookChange.xaml b/sources/PocketBook/Pages/Composants/ContentView/BookChange.xaml similarity index 98% rename from sources/PocketBook/BookChange.xaml rename to sources/PocketBook/Pages/Composants/ContentView/BookChange.xaml index 0759396..a14875a 100644 --- a/sources/PocketBook/BookChange.xaml +++ b/sources/PocketBook/Pages/Composants/ContentView/BookChange.xaml @@ -1,14 +1,15 @@ - - - - + + + + + - - - + + + diff --git a/sources/PocketBook/BookChange.xaml.cs b/sources/PocketBook/Pages/Composants/ContentView/BookChange.xaml.cs similarity index 97% rename from sources/PocketBook/BookChange.xaml.cs rename to sources/PocketBook/Pages/Composants/ContentView/BookChange.xaml.cs index e6a704c..583fc20 100644 --- a/sources/PocketBook/BookChange.xaml.cs +++ b/sources/PocketBook/Pages/Composants/ContentView/BookChange.xaml.cs @@ -1,30 +1,30 @@ -namespace PocketBook; - -public partial class BookChange : ContentView -{ - - public static readonly BindableProperty ImageNameProperty= - BindableProperty.Create(nameof(ImageName), typeof(string), typeof(BookChange), string.Empty); - - public static readonly BindableProperty PropertyNameProperty = - BindableProperty.Create(nameof(PropertyName), typeof(string), typeof(BookChange), string.Empty); - - public string ImageName - { - get { return (string)GetValue(ImageNameProperty); } - set { SetValue(ImageNameProperty, value); } - } - - public string PropertyName - { - get { return (string)GetValue(PropertyNameProperty); } - set { SetValue(PropertyNameProperty, value); } - } - - public BookChange() - { - InitializeComponent(); - imageName.SetBinding(Image.SourceProperty, new Binding(nameof(ImageName), source: this)); - propertyName.SetBinding(Label.TextProperty, new Binding(nameof(PropertyName), source: this)); - } +namespace PocketBook; + +public partial class BookChange : ContentView +{ + + public static readonly BindableProperty ImageNameProperty= + BindableProperty.Create(nameof(ImageName), typeof(string), typeof(BookChange), string.Empty); + + public static readonly BindableProperty PropertyNameProperty = + BindableProperty.Create(nameof(PropertyName), typeof(string), typeof(BookChange), string.Empty); + + public string ImageName + { + get { return (string)GetValue(ImageNameProperty); } + set { SetValue(ImageNameProperty, value); } + } + + public string PropertyName + { + get { return (string)GetValue(PropertyNameProperty); } + set { SetValue(PropertyNameProperty, value); } + } + + public BookChange() + { + InitializeComponent(); + imageName.SetBinding(Image.SourceProperty, new Binding(nameof(ImageName), source: this)); + propertyName.SetBinding(Label.TextProperty, new Binding(nameof(PropertyName), source: this)); + } } \ No newline at end of file diff --git a/sources/PocketBook/Pages/Composants/ContentView/ContentViewBook.xaml b/sources/PocketBook/Pages/Composants/ContentView/ContentViewBook.xaml new file mode 100644 index 0000000..270dcd8 --- /dev/null +++ b/sources/PocketBook/Pages/Composants/ContentView/ContentViewBook.xaml @@ -0,0 +1,20 @@ + + + + + + + + + + diff --git a/sources/PocketBook/ContentViewBook.xaml.cs b/sources/PocketBook/Pages/Composants/ContentView/ContentViewBook.xaml.cs similarity index 100% rename from sources/PocketBook/ContentViewBook.xaml.cs rename to sources/PocketBook/Pages/Composants/ContentView/ContentViewBook.xaml.cs diff --git a/sources/PocketBook/ContentViewFilter.xaml b/sources/PocketBook/Pages/Composants/ContentView/ContentViewFilter.xaml similarity index 80% rename from sources/PocketBook/ContentViewFilter.xaml rename to sources/PocketBook/Pages/Composants/ContentView/ContentViewFilter.xaml index 09c6896..260d84e 100644 --- a/sources/PocketBook/ContentViewFilter.xaml +++ b/sources/PocketBook/Pages/Composants/ContentView/ContentViewFilter.xaml @@ -3,10 +3,10 @@ xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" x:Class="PocketBook.ContentViewFilter"> - + diff --git a/sources/PocketBook/ContentViewFilter.xaml.cs b/sources/PocketBook/Pages/Composants/ContentView/ContentViewFilter.xaml.cs similarity index 100% rename from sources/PocketBook/ContentViewFilter.xaml.cs rename to sources/PocketBook/Pages/Composants/ContentView/ContentViewFilter.xaml.cs diff --git a/sources/PocketBook/Filtrage.xaml b/sources/PocketBook/Pages/Composants/ContentView/Filtrage.xaml similarity index 94% rename from sources/PocketBook/Filtrage.xaml rename to sources/PocketBook/Pages/Composants/ContentView/Filtrage.xaml index 0dc4ce3..2995aaa 100644 --- a/sources/PocketBook/Filtrage.xaml +++ b/sources/PocketBook/Pages/Composants/ContentView/Filtrage.xaml @@ -11,7 +11,7 @@