conflit fix
continuous-integration/drone/push Build is failing Details

developpement
Matheo THIERRY 2 years ago
commit 365742508e

@ -7,6 +7,7 @@ using System.Linq;
using System.Runtime.Serialization; using System.Runtime.Serialization;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using System.Web;
namespace Biblioteque_de_Class namespace Biblioteque_de_Class
{ {
@ -18,7 +19,14 @@ namespace Biblioteque_de_Class
[DataMember] [DataMember]
public List<Theme> ThemeList { get; private set; } public List<Theme> ThemeList { get; private set; }
[DataMember] [DataMember]
public List<User> UserList { get; private set; } private List<User> UserList = null!;
public List<User> Users { get => UserList; private set
{
UserList = value;
}
}
[DataMember]
private Dictionary<User, List<Theme>> AddedThemeList;
public Database() public Database()
{ {

@ -1,52 +1,52 @@
using Microsoft.VisualBasic; using Microsoft.VisualBasic;
namespace Biblioteque_de_Class namespace Biblioteque_de_Class
{ {
public class PersistenceManager public class PersistenceManager
{ {
private Database db = new(); private Database db = new Database();
private readonly IManager persistence; private readonly IManager persistence;
public PersistenceManager(IManager pers) public PersistenceManager(IManager pers)
{ {
persistence = pers; persistence = pers;
}
public void SaveDatabaseData(Database database)
{
persistence.SaveDatabaseData(database.UserList);
} }
public void SaveDatabaseData(Database database)
{
persistence.SaveDatabaseData(database.UserList);
}
public void SaveDefaultData(Database database) public void SaveDefaultData(Database database)
{ {
persistence.SaveDefaultData(database.ThemeList, database.DefaultLogoList); persistence.SaveDefaultData(database.ThemeList, database.DefaultLogoList);
} }
public Database LoadDatabaseData() public Database LoadDatabaseData()
{
db.SetUserList(persistence.LoadDatabaseData());
db.SetDefaultThemeList(persistence.LoadDefaultTheme());
db.SetDefaultLogoList(persistence.LoadDefaultLogo());
return db;
}
public Database GetOnlyDatabaseUser()
{ {
db.SetUserList(persistence.LoadDatabaseData()); db.SetUserList(persistence.LoadDatabaseData());
db.SetDefaultThemeList(persistence.LoadDefaultTheme());
db.SetDefaultLogoList(persistence.LoadDefaultLogo());
return db; return db;
} }
public Database GetOnlyDatabaseDefaultTheme() public Database GetOnlyDatabaseUser()
{
db.SetUserList(persistence.LoadDatabaseData());
return db;
}
public Database GetOnlyDatabaseDefaultTheme()
{ {
db.SetDefaultThemeList(persistence.LoadDefaultTheme()); db.SetDefaultThemeList(persistence.LoadDefaultTheme());
return db; return db;
} }
public Database GetOnlyDatabaseDefaultLogo() public Database GetOnlyDatabaseDefaultLogo()
{ {
db.SetDefaultLogoList(persistence.LoadDefaultLogo()); db.SetDefaultLogoList(persistence.LoadDefaultLogo());
return db; return db;
} }
} }
} }

@ -43,7 +43,6 @@ namespace Biblioteque_de_Class
NoteTagged = new Dictionary<Note, List<Tags>>(); NoteTagged = new Dictionary<Note, List<Tags>>();
AddedTheme = new List<Theme>(); AddedTheme = new List<Theme>();
} }
public override string ToString() => $"username: {Username}\nemail: {Email}\npassword: {Password}\nOwned notes: {NoteList.Count}"; public override string ToString() => $"username: {Username}\nemail: {Email}\npassword: {Password}\nOwned notes: {NoteList.Count}";
/// <summary> /// <summary>

@ -7,8 +7,8 @@ using System.Security.Cryptography;
using System.Text; using System.Text;
// load database // load database
PersistenceManager managerLoad = new(new ToXML()); PersistenceManager manager = new PersistenceManager(new Stub());
Database db = managerLoad.LoadDatabaseData(); Database db = manager.LoadDatabaseData();
//save database //save database
PersistenceManager managerSave = new(new ToXML()); PersistenceManager managerSave = new(new ToXML());

@ -6,7 +6,10 @@ MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Notus_Vue", "notus_vue\Notus_Vue.csproj", "{561264A1-4611-40FB-A662-3EF65550CA71}" Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Notus_Vue", "notus_vue\Notus_Vue.csproj", "{561264A1-4611-40FB-A662-3EF65550CA71}"
ProjectSection(ProjectDependencies) = postProject ProjectSection(ProjectDependencies) = postProject
{184478A9-E14F-42E0-B963-B3A4474C9C1C} = {184478A9-E14F-42E0-B963-B3A4474C9C1C} {184478A9-E14F-42E0-B963-B3A4474C9C1C} = {184478A9-E14F-42E0-B963-B3A4474C9C1C}
{7B7F1062-9498-44E5-AC77-84BC90A3B730} = {7B7F1062-9498-44E5-AC77-84BC90A3B730}
{92DD50C5-EEAD-44ED-AEFF-E21935725477} = {92DD50C5-EEAD-44ED-AEFF-E21935725477} {92DD50C5-EEAD-44ED-AEFF-E21935725477} = {92DD50C5-EEAD-44ED-AEFF-E21935725477}
{AFCEAA99-3A25-4E9E-B498-72DD76A6B7FF} = {AFCEAA99-3A25-4E9E-B498-72DD76A6B7FF}
{EE443C17-B31D-4AD0-9141-920876E7DF79} = {EE443C17-B31D-4AD0-9141-920876E7DF79}
EndProjectSection EndProjectSection
EndProject EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Biblioteque_de_Class", "Biblioteque_de_Class\Biblioteque_de_Class.csproj", "{92DD50C5-EEAD-44ED-AEFF-E21935725477}" Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Biblioteque_de_Class", "Biblioteque_de_Class\Biblioteque_de_Class.csproj", "{92DD50C5-EEAD-44ED-AEFF-E21935725477}"

@ -1,13 +1,19 @@
 
using Biblioteque_de_Class;
using Notus_Persistance;
namespace notus; namespace notus;
public partial class App : Application public partial class App : Application
{ {
public App() public PersistenceManager manager = new PersistenceManager(new Stub());
public Database db = new Database();
public App()
{ {
InitializeComponent(); InitializeComponent();
db = manager.LoadDatabaseData();
MainPage = new AppShell(); MainPage = new AppShell();
} }

@ -6,7 +6,8 @@
xmlns:local="clr-namespace:notus" xmlns:local="clr-namespace:notus"
Shell.FlyoutBehavior="Locked" Shell.FlyoutBehavior="Locked"
Shell.FlyoutWidth="30" Shell.FlyoutWidth="30"
Shell.NavBarIsVisible="False"> Shell.NavBarIsVisible="True"
Shell.BackgroundColor="Grey">
<ShellContent <ShellContent
Title="main_page" Title="main_page"
@ -27,6 +28,10 @@
Title="Inscription_Page" Title="Inscription_Page"
ContentTemplate="{DataTemplate local:InscrPage}" ContentTemplate="{DataTemplate local:InscrPage}"
Route="InscrPage"/> Route="InscrPage"/>
<ShellContent
Title="ProfilPage"
ContentTemplate="{DataTemplate local:ProfilPage}"
Route="ProfilPage"/>
</Shell> </Shell>

@ -39,7 +39,7 @@
FontFamily="strong" FontFamily="strong"
/> />
<Entry <Entry x:Name="Mail"
Grid.Column="1" Grid.Column="1"
Grid.ColumnSpan="3" Grid.ColumnSpan="3"
Grid.Row="3" Grid.Row="3"
@ -50,7 +50,7 @@
BackgroundColor="#4A4A4A" BackgroundColor="#4A4A4A"
/> />
<Entry <Entry x:Name="Password"
Grid.Column="1" Grid.Column="1"
Grid.ColumnSpan="3" Grid.ColumnSpan="3"
Grid.Row="5" Grid.Row="5"
@ -69,6 +69,16 @@
Text="Valider" Text="Valider"
TextColor="Black" TextColor="Black"
BackgroundColor="#74fabd" BackgroundColor="#74fabd"
Clicked="Valid_Clicked"
/>
<Label
x:Name="ResultSearch"
Text="Mail ou mot de passe incorrect."
IsVisible="false"
Grid.Column="2"
Grid.Row="7"
TextColor="Red"
/> />
</Grid> </Grid>

@ -1,9 +1,28 @@
namespace notus; using Biblioteque_de_Class;
public partial class ConnecPage : ContentPage namespace notus;
{
public ConnecPage() public partial class ConnecPage : ContentPage
{ {
InitializeComponent(); string mail = "";
} string MDP = "";
public ConnecPage()
{
InitializeComponent();
}
private async void Valid_Clicked(object sender, EventArgs e)
{
mail = Mail.Text;
MDP = Password.Text;
if ((Application.Current as App).db.SearchUser(mail, MDP))
{
await Navigation.PushAsync(new RecherPage());
}
else
{
ResultSearch.IsVisible = true;
}
}
} }

@ -1,81 +1,82 @@
<?xml version="1.0" encoding="utf-8" ?> <?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui" <ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="notus.InscrPage" x:Class="notus.InscrPage"
Title="InscrPage"> Title="InscrPage">
<Grid BackgroundColor="#1C1C1C"> <Grid BackgroundColor="#1C1C1C">
<Grid.ColumnDefinitions> <Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/> <ColumnDefinition Width="1*"/>
<ColumnDefinition Width="Auto"/> <ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="1*"/> <ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions> </Grid.ColumnDefinitions>
<Grid.RowDefinitions> <Grid.RowDefinitions>
<RowDefinition Height="1*"/> <RowDefinition Height="1*"/>
<RowDefinition Height="150"/> <RowDefinition Height="150"/>
<RowDefinition Height="150"/> <RowDefinition Height="150"/>
<RowDefinition Height="150"/> <RowDefinition Height="150"/>
<RowDefinition Height="1*"/> <RowDefinition Height="1*"/>
</Grid.RowDefinitions> </Grid.RowDefinitions>
<Entry <Entry
Placeholder="Pseudo" Placeholder="Pseudo"
HorizontalOptions="Center" HorizontalOptions="Center"
VerticalOptions="Center" VerticalOptions="Center"
WidthRequest="600" WidthRequest="600"
HeightRequest="100" HeightRequest="100"
FontSize="32" FontSize="32"
Grid.Column="1" Grid.Column="1"
Grid.Row="1" Grid.Row="1"
TextColor="#74fabd" TextColor="#74fabd"
BackgroundColor="#4A4A4A" BackgroundColor="#4A4A4A"
PlaceholderColor="#74fabd" PlaceholderColor="#74fabd"
/> />
<Entry <Entry
Placeholder="Mot de passe" Placeholder="Mot de passe"
HorizontalOptions="Center" HorizontalOptions="Center"
VerticalOptions="Center" VerticalOptions="Center"
WidthRequest="600" WidthRequest="600"
HeightRequest="100" HeightRequest="100"
FontSize="32" FontSize="32"
Grid.Column="1" Grid.Column="1"
Grid.Row="2" Grid.Row="2"
IsPassword="true" IsPassword="true"
TextColor="#74fabd" TextColor="#74fabd"
BackgroundColor="#4A4A4A" BackgroundColor="#4A4A4A"
PlaceholderColor="#74fabd" PlaceholderColor="#74fabd"
/> />
<Entry <Entry
Placeholder ="Verif mot de passe" Placeholder ="Verif mot de passe"
HorizontalOptions="Center" HorizontalOptions="Center"
VerticalOptions="Center" VerticalOptions="Center"
WidthRequest="600" WidthRequest="600"
HeightRequest="100" HeightRequest="100"
FontSize="32" FontSize="32"
Grid.Column="1" Grid.Column="1"
Grid.Row="3" Grid.Row="3"
IsPassword="true" IsPassword="true"
TextColor="#74fabd" TextColor="#74fabd"
BackgroundColor="#4A4A4A" BackgroundColor="#4A4A4A"
PlaceholderColor="#74fabd" PlaceholderColor="#74fabd"
/> />
<Button <Button
Text="Valider" Text="Valider"
Grid.Column="1" Grid.Column="1"
Grid.Row="4" Grid.Row="4"
HorizontalOptions="End" HorizontalOptions="End"
VerticalOptions="Center" VerticalOptions="Center"
WidthRequest="110" WidthRequest="110"
HeightRequest="70" HeightRequest="70"
BackgroundColor="#74fabd" BackgroundColor="#74fabd"
TextColor="Black" TextColor="Black"
CornerRadius="10" CornerRadius="10"
/> Clicked="Valid_Clicked"
/>
</Grid>
</Grid>
</ContentPage>
</ContentPage>

@ -1,9 +1,14 @@
namespace notus; namespace notus;
public partial class InscrPage : ContentPage
{
public InscrPage()
{
InitializeComponent();
}
public partial class InscrPage : ContentPage private async void Valid_Clicked(object sender, EventArgs e)
{
public InscrPage()
{ {
InitializeComponent(); await Navigation.PushAsync(new RecherPage());
} }
} }

@ -35,13 +35,14 @@
<Button <Button
CornerRadius="50" CornerRadius="50"
Text="Connection" Text="Connexion"
TextColor="#74fabd" TextColor="#74fabd"
FontSize="30" FontSize="30"
Grid.Row="2" Grid.Row="2"
Grid.Column="1" Grid.Column="1"
HeightRequest="75" HeightRequest="75"
BackgroundColor="#4A4A4A" BackgroundColor="#4A4A4A"
Clicked="Connec_Clicked"
/> />
<Button <Button
@ -53,6 +54,7 @@
Grid.Column="1" Grid.Column="1"
HeightRequest="75" HeightRequest="75"
BackgroundColor="#4A4A4A" BackgroundColor="#4A4A4A"
Clicked="Inscr_Clicked"
/> />
</Grid> </Grid>

@ -1,8 +1,19 @@
namespace notus; namespace notus;
public partial class MainPage : ContentPage{ public partial class MainPage : ContentPage{
public MainPage(){ public MainPage(){
InitializeComponent(); InitializeComponent();
} }
}
private async void Connec_Clicked(object sender, EventArgs e)
{
await Navigation.PushAsync(new ConnecPage());
}
private async void Inscr_Clicked(object sender, EventArgs e)
{
await Navigation.PushAsync(new InscrPage());
}
}

@ -0,0 +1,74 @@
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:toolkit="http://schemas.microsoft.com/dodnet/2022/maui/toolkit"
x:Class="notus.ProfilPage"
Title="ProfilPage"
BackgroundColor="#1C1C1C">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="1.5*"/>
<RowDefinition Height="1.5*"/>
<RowDefinition Height="1.5*"/>
<RowDefinition Height="1.5*"/>
<RowDefinition Height="1.5*"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
<ColumnDefinition Width="1*"/>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
<Button
Text="Modifier Profil"
TextColor="#74fabd"
BackgroundColor="#4A4A4A"
Grid.Column="1"
Grid.Row="4"
VerticalOptions="Center"
HeightRequest="80"
FontSize="30"
/>
<Button
Text="Modifier Theme"
TextColor="#74fabd"
BackgroundColor="#4A4A4A"
Grid.Column="1"
Grid.Row="5"
FontSize="30"
VerticalOptions="Start"
HeightRequest="80"
/>
<Label
Text="Profil"
FontSize="30"
HorizontalTextAlignment="Center"
VerticalTextAlignment="Center"
TextColor="#74fabd"
BackgroundColor="#4A4A4A"
Grid.Column="1"
Grid.Row="3"
VerticalOptions="End"
HeightRequest="80"
/>
<ImageButton
Source="profil.png"
Aspect="AspectFit"
Grid.Column="1"
Grid.Row="2"
WidthRequest="550"
HeightRequest="250"
BackgroundColor="#6E6E6E"
CornerRadius="10"
Clicked="ProfilClicked"
/>
</Grid>
</ContentPage>

@ -0,0 +1,17 @@
using Microsoft.Maui.Controls;
using Biblioteque_de_Class;
using Notus_Persistance;
namespace notus;
public partial class ProfilPage : ContentPage
{
public ProfilPage()
{
InitializeComponent();
}
void ProfilClicked(System.Object sender, System.EventArgs e)
{
}
}

@ -1,133 +1,134 @@
<?xml version="1.0" encoding="utf-8" ?> <?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui" <ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:toolkit="http://schemas.microsoft.com/dodnet/2022/maui/toolkit" xmlns:toolkit="http://schemas.microsoft.com/dodnet/2022/maui/toolkit"
x:Class="notus.RecherPage" x:Class="notus.RecherPage"
Title="RecherPage" Title="RecherPage"
BackgroundColor="#1C1C1C"> BackgroundColor="#1C1C1C">
<Grid> <Grid>
<Grid.RowDefinitions> <Grid.RowDefinitions>
<RowDefinition Height="Auto"/> <RowDefinition Height="Auto"/>
<RowDefinition Height="1.5*"/> <RowDefinition Height="1.5*"/>
<RowDefinition Height="1*"/> <RowDefinition Height="1*"/>
<RowDefinition Height="1.8*"/> <RowDefinition Height="1.8*"/>
<RowDefinition Height="1*"/> <RowDefinition Height="1*"/>
<RowDefinition Height="1.8*"/> <RowDefinition Height="1.8*"/>
<RowDefinition Height="1*"/> <RowDefinition Height="1*"/>
<RowDefinition Height="1*"/> <RowDefinition Height="1*"/>
<RowDefinition Height="4*"/> <RowDefinition Height="4*"/>
</Grid.RowDefinitions> </Grid.RowDefinitions>
<Grid.ColumnDefinitions> <Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/> <ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="1*"/> <ColumnDefinition Width="1*"/>
<ColumnDefinition Width="1*"/> <ColumnDefinition Width="1*"/>
<ColumnDefinition Width="Auto"/> <ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="Auto"/> <ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions> </Grid.ColumnDefinitions>
<Border <Border
Background="#6E6E6E" Background="#6E6E6E"
Grid.Column="0" Grid.Column="0"
Grid.RowSpan="9" Grid.RowSpan="9"
/> />
<ImageButton <ImageButton
Source="profil.png" Source="profl.png"
Aspect="AspectFit" Aspect="AspectFit"
Grid.Column="4" Grid.Column="4"
Grid.Row="0" Grid.Row="0"
HorizontalOptions="Start" HorizontalOptions="Start"
VerticalOptions="Start" VerticalOptions="Start"
WidthRequest="200" WidthRequest="200"
HeightRequest="120" HeightRequest="120"
BackgroundColor="#6E6E6E" BackgroundColor="#6E6E6E"
CornerRadius="10" CornerRadius="10"
/> Clicked="Profil_Clicked"
/>
<ImageButton
Source="supp.png" <ImageButton
Aspect="AspectFill" Source="supp.png"
Grid.Column="2" Aspect="AspectFill"
Grid.Row="0" Grid.Column="2"
Margin="20" Grid.Row="0"
HorizontalOptions="End" Margin="20"
VerticalOptions="Start" HorizontalOptions="End"
WidthRequest="50" VerticalOptions="Start"
HeightRequest="50" WidthRequest="50"
BackgroundColor="#4A4A4A" HeightRequest="50"
CornerRadius="50" BackgroundColor="#4A4A4A"
/> CornerRadius="50"
/>
<Label
Text="Nom de la note" <Label x:Name="NomNote"
Grid.Column="1" Text="{Binding Name}"
Grid.Row="0" Grid.Column="1"
TextColor="#74fabd" Grid.Row="0"
Margin="20" TextColor="#74fabd"
FontSize="34" Margin="20"
BackgroundColor="#4A4A4A" FontSize="34"
WidthRequest="250" BackgroundColor="#4A4A4A"
HeightRequest="50" WidthRequest="250"
HorizontalOptions="Center" HeightRequest="50"
VerticalOptions="Start" HorizontalOptions="Center"
BindingContext="NomDeLaNoteSelected" VerticalOptions="Start"
/> />
<ImageButton <ImageButton
Source="edit.png" Source="edit.png"
Aspect="AspectFit" Aspect="AspectFit"
Grid.Column="1" Grid.Column="1"
Grid.Row="0" Grid.Row="0"
Margin="20" Margin="20"
HorizontalOptions="Start" HorizontalOptions="Start"
VerticalOptions="Start" VerticalOptions="Start"
WidthRequest="50" WidthRequest="50"
HeightRequest="50" HeightRequest="50"
BackgroundColor="#4A4A4A" BackgroundColor="#4A4A4A"
CornerRadius="50" CornerRadius="50"
/> />
<Entry <Entry
Placeholder="Rechercher" Placeholder="Rechercher"
HorizontalOptions="Start" HorizontalOptions="Start"
Margin="20" Margin="20"
VerticalOptions="Center" VerticalOptions="Center"
WidthRequest="300" WidthRequest="300"
HeightRequest="50" HeightRequest="50"
FontSize="25" FontSize="25"
Grid.Column="0" Grid.Column="0"
Grid.Row="0" Grid.Row="0"
TextColor="#74fabd" TextColor="#74fabd"
BackgroundColor="#4A4A4A" BackgroundColor="#4A4A4A"
PlaceholderColor="#74fabd" PlaceholderColor="#74fabd"
/> />
<VerticalStackLayout <ListView x:Name="ListNote"
Grid.Column="0" Grid.Column="0"
Grid.RowSpan="5" Grid.Row="2"
BindingContext="ARefaire" Grid.RowSpan="5"
/> ItemsSource="{Binding NoteList}"
/>
<Editor
Placeholder="Texte" <Editor
IsSpellCheckEnabled="True" Placeholder="Texte"
FontSize="20" IsSpellCheckEnabled="True"
HorizontalOptions="Start" FontSize="20"
VerticalOptions="Center" HorizontalOptions="Start"
Margin="20" VerticalOptions="Center"
WidthRequest="800" Margin="20"
HeightRequest="750" WidthRequest="800"
Grid.Column="1" HeightRequest="750"
Grid.ColumnSpan="4" Grid.Column="1"
Grid.Row="4" Grid.ColumnSpan="4"
Grid.RowSpan="3" Grid.Row="4"
TextColor="White" Grid.RowSpan="3"
BackgroundColor="#4A4A4A" TextColor="White"
PlaceholderColor="#74fabd" BackgroundColor="#4A4A4A"
/> PlaceholderColor="#74fabd"
/>
</Grid>
</Grid>
</ContentPage> </ContentPage>

@ -1,24 +1,23 @@
namespace notus; using Microsoft.Maui.Controls;
using Biblioteque_de_Class;
public partial class RecherPage : ContentPage using Notus_Persistance;
{
public RecherPage()
{ namespace notus;
InitializeComponent();
} public partial class RecherPage : ContentPage
{
void ProfilClicked() PersistenceManager manager = (Application.Current as App).manager;
public RecherPage()
{ {
manager.LoadDatabaseData();
} InitializeComponent();
ListNote.BindingContext = manager;
void EditCLicked() NomNote.BindingContext = manager;
{ }
} private async void Profil_Clicked(object sender, EventArgs e)
{
void SuppClicked() await Navigation.PushAsync(new ProfilPage());
{ }
}
} }

@ -53,12 +53,23 @@
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="7.0.0" /> <PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="7.0.0" />
</ItemGroup> </ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Biblioteque_de_Class\Biblioteque_de_Class.csproj" />
<ProjectReference Include="..\Notus_Persistence\Notus_Persistance.csproj" />
<ProjectReference Include="..\Tests\Notus_UnitTest_Database\Notus_UnitTest_Database.csproj" />
<ProjectReference Include="..\Tests\Notus_UnitTest_Note\Notus_UnitTest_Note.csproj" />
<ProjectReference Include="..\Tests\Notus_UnitTest_User\Notus_UnitTest_User.csproj" />
</ItemGroup>
<ItemGroup> <ItemGroup>
<Compile Update="ConnecPage.xaml.cs"> <Compile Update="ConnecPage.xaml.cs">
<DependentUpon>ConnecPage.xaml</DependentUpon> <DependentUpon>ConnecPage.xaml</DependentUpon>
</Compile> </Compile>
<Compile Update="InscrPage.xaml.cs"> <Compile Update="InscrPage.xaml.cs">
<DependentUpon>InscrPage.xaml</DependentUpon> <DependentUpon>InscrPage.xaml</DependentUpon>
</Compile>
<Compile Update="ProfilPage.xaml.cs">
<DependentUpon>ProfilPage.xaml</DependentUpon>
</Compile> </Compile>
<Compile Update="RecherPage.xaml.cs"> <Compile Update="RecherPage.xaml.cs">
<DependentUpon>RecherPage.xaml</DependentUpon> <DependentUpon>RecherPage.xaml</DependentUpon>
@ -69,8 +80,11 @@
<MauiXaml Update="ConnecPage.xaml"> <MauiXaml Update="ConnecPage.xaml">
<Generator>MSBuild:Compile</Generator> <Generator>MSBuild:Compile</Generator>
</MauiXaml> </MauiXaml>
<MauiXaml Update="InscrPage.xaml"> <MauiXaml Update="InscrPage.xaml">
<Generator>MSBuild:Compile</Generator> <Generator>MSBuild:Compile</Generator>
</MauiXaml>
<MauiXaml Update="ProfilPage.xaml">
<Generator>MSBuild:Compile</Generator>
</MauiXaml> </MauiXaml>
<MauiXaml Update="RecherPage.xaml"> <MauiXaml Update="RecherPage.xaml">
<Generator>MSBuild:Compile</Generator> <Generator>MSBuild:Compile</Generator>

Loading…
Cancel
Save