Compare commits
No commits in common. 'master' and 'upgradeclass' have entirely different histories.
master
...
upgradecla
@ -0,0 +1,496 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Database xmlns:i="http://www.w3.org/2001/XMLSchema-instance" i:type="ArrayOfUser" xmlns="http://schemas.datacontract.org/2004/07/Biblioteque_de_Class">
|
||||||
|
<User>
|
||||||
|
<Email>leHeros@gmail.com</Email>
|
||||||
|
<FavList />
|
||||||
|
<NoteList>
|
||||||
|
<Note z:Id="i1" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/">
|
||||||
|
<Collaborators>
|
||||||
|
<User>
|
||||||
|
<Email>labsent@gmail.com</Email>
|
||||||
|
<FavList />
|
||||||
|
<NoteList>
|
||||||
|
<Note z:Id="i2">
|
||||||
|
<Collaborators />
|
||||||
|
<CreationDate xmlns:d9p1="http://schemas.datacontract.org/2004/07/System" />
|
||||||
|
<Editors>
|
||||||
|
<User>
|
||||||
|
<Email>labsent@gmail.com</Email>
|
||||||
|
<FavList />
|
||||||
|
<NoteList>
|
||||||
|
<Note z:Ref="i2" />
|
||||||
|
<Note z:Ref="i1" />
|
||||||
|
</NoteList>
|
||||||
|
<NoteTagged xmlns:d11p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
|
||||||
|
<d11p1:KeyValueOfNoteArrayOfTagsw0Ob5Kw8>
|
||||||
|
<d11p1:Key z:Ref="i2" />
|
||||||
|
<d11p1:Value />
|
||||||
|
</d11p1:KeyValueOfNoteArrayOfTagsw0Ob5Kw8>
|
||||||
|
</NoteTagged>
|
||||||
|
<Password>fa7d77716ab4b614012aef71d589ef1bd018e1e25438c8546d1a2ce83b52c5c4</Password>
|
||||||
|
<Picture>defaultpicture.png</Picture>
|
||||||
|
<TagList>
|
||||||
|
<Tags>
|
||||||
|
<Color>#5555FF</Color>
|
||||||
|
<Name>Tag 1</Name>
|
||||||
|
</Tags>
|
||||||
|
</TagList>
|
||||||
|
<UseTheme>
|
||||||
|
<ColorList xmlns:d12p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
|
||||||
|
<d12p1:string>,,</d12p1:string>
|
||||||
|
</ColorList>
|
||||||
|
<Name></Name>
|
||||||
|
</UseTheme>
|
||||||
|
<Username>Benjamin</Username>
|
||||||
|
</User>
|
||||||
|
</Editors>
|
||||||
|
<ImageList />
|
||||||
|
<LogoPath>DefaultLogo.png</LogoPath>
|
||||||
|
<ModificationDate xmlns:d9p1="http://schemas.datacontract.org/2004/07/System" />
|
||||||
|
<Name>Note 1</Name>
|
||||||
|
<Owner>
|
||||||
|
<Email>labsent@gmail.com</Email>
|
||||||
|
<FavList />
|
||||||
|
<NoteList>
|
||||||
|
<Note z:Ref="i2" />
|
||||||
|
<Note z:Ref="i1" />
|
||||||
|
</NoteList>
|
||||||
|
<NoteTagged xmlns:d10p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
|
||||||
|
<d10p1:KeyValueOfNoteArrayOfTagsw0Ob5Kw8>
|
||||||
|
<d10p1:Key z:Ref="i2" />
|
||||||
|
<d10p1:Value />
|
||||||
|
</d10p1:KeyValueOfNoteArrayOfTagsw0Ob5Kw8>
|
||||||
|
</NoteTagged>
|
||||||
|
<Password>fa7d77716ab4b614012aef71d589ef1bd018e1e25438c8546d1a2ce83b52c5c4</Password>
|
||||||
|
<Picture>defaultpicture.png</Picture>
|
||||||
|
<TagList>
|
||||||
|
<Tags>
|
||||||
|
<Color>#5555FF</Color>
|
||||||
|
<Name>Tag 1</Name>
|
||||||
|
</Tags>
|
||||||
|
</TagList>
|
||||||
|
<UseTheme>
|
||||||
|
<ColorList xmlns:d11p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
|
||||||
|
<d11p1:string>,,</d11p1:string>
|
||||||
|
</ColorList>
|
||||||
|
<Name></Name>
|
||||||
|
</UseTheme>
|
||||||
|
<Username>Benjamin</Username>
|
||||||
|
</Owner>
|
||||||
|
<Text></Text>
|
||||||
|
<logoPath>DefaultLogo.png</logoPath>
|
||||||
|
<name>Note 1</name>
|
||||||
|
</Note>
|
||||||
|
<Note z:Ref="i1" />
|
||||||
|
</NoteList>
|
||||||
|
<NoteTagged xmlns:d7p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
|
||||||
|
<d7p1:KeyValueOfNoteArrayOfTagsw0Ob5Kw8>
|
||||||
|
<d7p1:Key z:Ref="i2" />
|
||||||
|
<d7p1:Value />
|
||||||
|
</d7p1:KeyValueOfNoteArrayOfTagsw0Ob5Kw8>
|
||||||
|
</NoteTagged>
|
||||||
|
<Password>fa7d77716ab4b614012aef71d589ef1bd018e1e25438c8546d1a2ce83b52c5c4</Password>
|
||||||
|
<Picture>defaultpicture.png</Picture>
|
||||||
|
<TagList>
|
||||||
|
<Tags>
|
||||||
|
<Color>#5555FF</Color>
|
||||||
|
<Name>Tag 1</Name>
|
||||||
|
</Tags>
|
||||||
|
</TagList>
|
||||||
|
<UseTheme>
|
||||||
|
<ColorList xmlns:d8p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
|
||||||
|
<d8p1:string>,,</d8p1:string>
|
||||||
|
</ColorList>
|
||||||
|
<Name></Name>
|
||||||
|
</UseTheme>
|
||||||
|
<Username>Benjamin</Username>
|
||||||
|
</User>
|
||||||
|
<User>
|
||||||
|
<Email>liammonchanin@gmail.com</Email>
|
||||||
|
<FavList />
|
||||||
|
<NoteList>
|
||||||
|
<Note z:Id="i3">
|
||||||
|
<Collaborators />
|
||||||
|
<CreationDate xmlns:d9p1="http://schemas.datacontract.org/2004/07/System" />
|
||||||
|
<Editors>
|
||||||
|
<User>
|
||||||
|
<Email>liammonchanin@gmail.com</Email>
|
||||||
|
<FavList />
|
||||||
|
<NoteList>
|
||||||
|
<Note z:Ref="i3" />
|
||||||
|
<Note z:Ref="i1" />
|
||||||
|
</NoteList>
|
||||||
|
<NoteTagged xmlns:d11p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
|
||||||
|
<d11p1:KeyValueOfNoteArrayOfTagsw0Ob5Kw8>
|
||||||
|
<d11p1:Key z:Ref="i3" />
|
||||||
|
<d11p1:Value />
|
||||||
|
</d11p1:KeyValueOfNoteArrayOfTagsw0Ob5Kw8>
|
||||||
|
</NoteTagged>
|
||||||
|
<Password>dd13d2e59703e108138db99aadebdc3e308e175d5649061baf2764ab6c039a9b</Password>
|
||||||
|
<Picture>defaultpicture.png</Picture>
|
||||||
|
<TagList>
|
||||||
|
<Tags>
|
||||||
|
<Color>#5555FF</Color>
|
||||||
|
<Name>Tag 2</Name>
|
||||||
|
</Tags>
|
||||||
|
</TagList>
|
||||||
|
<UseTheme>
|
||||||
|
<ColorList xmlns:d12p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
|
||||||
|
<d12p1:string>,,</d12p1:string>
|
||||||
|
</ColorList>
|
||||||
|
<Name></Name>
|
||||||
|
</UseTheme>
|
||||||
|
<Username>Liam</Username>
|
||||||
|
</User>
|
||||||
|
</Editors>
|
||||||
|
<ImageList />
|
||||||
|
<LogoPath>DefaultLogo.png</LogoPath>
|
||||||
|
<ModificationDate xmlns:d9p1="http://schemas.datacontract.org/2004/07/System" />
|
||||||
|
<Name>Note 2</Name>
|
||||||
|
<Owner>
|
||||||
|
<Email>liammonchanin@gmail.com</Email>
|
||||||
|
<FavList />
|
||||||
|
<NoteList>
|
||||||
|
<Note z:Ref="i3" />
|
||||||
|
<Note z:Ref="i1" />
|
||||||
|
</NoteList>
|
||||||
|
<NoteTagged xmlns:d10p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
|
||||||
|
<d10p1:KeyValueOfNoteArrayOfTagsw0Ob5Kw8>
|
||||||
|
<d10p1:Key z:Ref="i3" />
|
||||||
|
<d10p1:Value />
|
||||||
|
</d10p1:KeyValueOfNoteArrayOfTagsw0Ob5Kw8>
|
||||||
|
</NoteTagged>
|
||||||
|
<Password>dd13d2e59703e108138db99aadebdc3e308e175d5649061baf2764ab6c039a9b</Password>
|
||||||
|
<Picture>defaultpicture.png</Picture>
|
||||||
|
<TagList>
|
||||||
|
<Tags>
|
||||||
|
<Color>#5555FF</Color>
|
||||||
|
<Name>Tag 2</Name>
|
||||||
|
</Tags>
|
||||||
|
</TagList>
|
||||||
|
<UseTheme>
|
||||||
|
<ColorList xmlns:d11p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
|
||||||
|
<d11p1:string>,,</d11p1:string>
|
||||||
|
</ColorList>
|
||||||
|
<Name></Name>
|
||||||
|
</UseTheme>
|
||||||
|
<Username>Liam</Username>
|
||||||
|
</Owner>
|
||||||
|
<Text></Text>
|
||||||
|
<logoPath>DefaultLogo.png</logoPath>
|
||||||
|
<name>Note 2</name>
|
||||||
|
</Note>
|
||||||
|
<Note z:Ref="i1" />
|
||||||
|
</NoteList>
|
||||||
|
<NoteTagged xmlns:d7p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
|
||||||
|
<d7p1:KeyValueOfNoteArrayOfTagsw0Ob5Kw8>
|
||||||
|
<d7p1:Key z:Ref="i3" />
|
||||||
|
<d7p1:Value />
|
||||||
|
</d7p1:KeyValueOfNoteArrayOfTagsw0Ob5Kw8>
|
||||||
|
</NoteTagged>
|
||||||
|
<Password>dd13d2e59703e108138db99aadebdc3e308e175d5649061baf2764ab6c039a9b</Password>
|
||||||
|
<Picture>defaultpicture.png</Picture>
|
||||||
|
<TagList>
|
||||||
|
<Tags>
|
||||||
|
<Color>#5555FF</Color>
|
||||||
|
<Name>Tag 2</Name>
|
||||||
|
</Tags>
|
||||||
|
</TagList>
|
||||||
|
<UseTheme>
|
||||||
|
<ColorList xmlns:d8p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
|
||||||
|
<d8p1:string>,,</d8p1:string>
|
||||||
|
</ColorList>
|
||||||
|
<Name></Name>
|
||||||
|
</UseTheme>
|
||||||
|
<Username>Liam</Username>
|
||||||
|
</User>
|
||||||
|
</Collaborators>
|
||||||
|
<CreationDate xmlns:d5p1="http://schemas.datacontract.org/2004/07/System" />
|
||||||
|
<Editors>
|
||||||
|
<User>
|
||||||
|
<Email>leHeros@gmail.com</Email>
|
||||||
|
<FavList />
|
||||||
|
<NoteList>
|
||||||
|
<Note z:Ref="i1" />
|
||||||
|
</NoteList>
|
||||||
|
<NoteTagged xmlns:d7p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
|
||||||
|
<d7p1:KeyValueOfNoteArrayOfTagsw0Ob5Kw8>
|
||||||
|
<d7p1:Key z:Ref="i1" />
|
||||||
|
<d7p1:Value>
|
||||||
|
<Tags>
|
||||||
|
<Color>#5555FF</Color>
|
||||||
|
<Name>Tag 0</Name>
|
||||||
|
</Tags>
|
||||||
|
</d7p1:Value>
|
||||||
|
</d7p1:KeyValueOfNoteArrayOfTagsw0Ob5Kw8>
|
||||||
|
</NoteTagged>
|
||||||
|
<Password>2cbb89e6f9b003468ecfc7957b6c2a2da22c8e2f600cb115323800dc0da20467</Password>
|
||||||
|
<Picture>defaultpicture.png</Picture>
|
||||||
|
<TagList>
|
||||||
|
<Tags>
|
||||||
|
<Color>#5555FF</Color>
|
||||||
|
<Name>Tag 0</Name>
|
||||||
|
</Tags>
|
||||||
|
</TagList>
|
||||||
|
<UseTheme>
|
||||||
|
<ColorList xmlns:d8p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
|
||||||
|
<d8p1:string>,,</d8p1:string>
|
||||||
|
</ColorList>
|
||||||
|
<Name></Name>
|
||||||
|
</UseTheme>
|
||||||
|
<Username>Nicolas</Username>
|
||||||
|
</User>
|
||||||
|
<User>
|
||||||
|
<Email>liammonchanin@gmail.com</Email>
|
||||||
|
<FavList />
|
||||||
|
<NoteList>
|
||||||
|
<Note z:Ref="i3" />
|
||||||
|
<Note z:Ref="i1" />
|
||||||
|
</NoteList>
|
||||||
|
<NoteTagged xmlns:d7p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
|
||||||
|
<d7p1:KeyValueOfNoteArrayOfTagsw0Ob5Kw8>
|
||||||
|
<d7p1:Key z:Ref="i3" />
|
||||||
|
<d7p1:Value />
|
||||||
|
</d7p1:KeyValueOfNoteArrayOfTagsw0Ob5Kw8>
|
||||||
|
</NoteTagged>
|
||||||
|
<Password>dd13d2e59703e108138db99aadebdc3e308e175d5649061baf2764ab6c039a9b</Password>
|
||||||
|
<Picture>defaultpicture.png</Picture>
|
||||||
|
<TagList>
|
||||||
|
<Tags>
|
||||||
|
<Color>#5555FF</Color>
|
||||||
|
<Name>Tag 2</Name>
|
||||||
|
</Tags>
|
||||||
|
</TagList>
|
||||||
|
<UseTheme>
|
||||||
|
<ColorList xmlns:d8p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
|
||||||
|
<d8p1:string>,,</d8p1:string>
|
||||||
|
</ColorList>
|
||||||
|
<Name></Name>
|
||||||
|
</UseTheme>
|
||||||
|
<Username>Liam</Username>
|
||||||
|
</User>
|
||||||
|
</Editors>
|
||||||
|
<ImageList />
|
||||||
|
<LogoPath>DefaultLogo.png</LogoPath>
|
||||||
|
<ModificationDate xmlns:d5p1="http://schemas.datacontract.org/2004/07/System" />
|
||||||
|
<Name>Note 0</Name>
|
||||||
|
<Owner>
|
||||||
|
<Email>leHeros@gmail.com</Email>
|
||||||
|
<FavList />
|
||||||
|
<NoteList>
|
||||||
|
<Note z:Ref="i1" />
|
||||||
|
</NoteList>
|
||||||
|
<NoteTagged xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
|
||||||
|
<d6p1:KeyValueOfNoteArrayOfTagsw0Ob5Kw8>
|
||||||
|
<d6p1:Key z:Ref="i1" />
|
||||||
|
<d6p1:Value>
|
||||||
|
<Tags>
|
||||||
|
<Color>#5555FF</Color>
|
||||||
|
<Name>Tag 0</Name>
|
||||||
|
</Tags>
|
||||||
|
</d6p1:Value>
|
||||||
|
</d6p1:KeyValueOfNoteArrayOfTagsw0Ob5Kw8>
|
||||||
|
</NoteTagged>
|
||||||
|
<Password>2cbb89e6f9b003468ecfc7957b6c2a2da22c8e2f600cb115323800dc0da20467</Password>
|
||||||
|
<Picture>defaultpicture.png</Picture>
|
||||||
|
<TagList>
|
||||||
|
<Tags>
|
||||||
|
<Color>#5555FF</Color>
|
||||||
|
<Name>Tag 0</Name>
|
||||||
|
</Tags>
|
||||||
|
</TagList>
|
||||||
|
<UseTheme>
|
||||||
|
<ColorList xmlns:d7p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
|
||||||
|
<d7p1:string>,,</d7p1:string>
|
||||||
|
</ColorList>
|
||||||
|
<Name></Name>
|
||||||
|
</UseTheme>
|
||||||
|
<Username>Nicolas</Username>
|
||||||
|
</Owner>
|
||||||
|
<Text></Text>
|
||||||
|
<logoPath>DefaultLogo.png</logoPath>
|
||||||
|
<name>Note 0</name>
|
||||||
|
</Note>
|
||||||
|
</NoteList>
|
||||||
|
<NoteTagged xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
|
||||||
|
<d3p1:KeyValueOfNoteArrayOfTagsw0Ob5Kw8>
|
||||||
|
<d3p1:Key z:Ref="i1" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" />
|
||||||
|
<d3p1:Value>
|
||||||
|
<Tags>
|
||||||
|
<Color>#5555FF</Color>
|
||||||
|
<Name>Tag 0</Name>
|
||||||
|
</Tags>
|
||||||
|
</d3p1:Value>
|
||||||
|
</d3p1:KeyValueOfNoteArrayOfTagsw0Ob5Kw8>
|
||||||
|
</NoteTagged>
|
||||||
|
<Password>2cbb89e6f9b003468ecfc7957b6c2a2da22c8e2f600cb115323800dc0da20467</Password>
|
||||||
|
<Picture>defaultpicture.png</Picture>
|
||||||
|
<TagList>
|
||||||
|
<Tags>
|
||||||
|
<Color>#5555FF</Color>
|
||||||
|
<Name>Tag 0</Name>
|
||||||
|
</Tags>
|
||||||
|
</TagList>
|
||||||
|
<UseTheme>
|
||||||
|
<ColorList xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
|
||||||
|
<d4p1:string>,,</d4p1:string>
|
||||||
|
</ColorList>
|
||||||
|
<Name></Name>
|
||||||
|
</UseTheme>
|
||||||
|
<Username>Nicolas</Username>
|
||||||
|
</User>
|
||||||
|
<User>
|
||||||
|
<Email>labsent@gmail.com</Email>
|
||||||
|
<FavList />
|
||||||
|
<NoteList>
|
||||||
|
<Note z:Ref="i2" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" />
|
||||||
|
<Note z:Ref="i1" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" />
|
||||||
|
</NoteList>
|
||||||
|
<NoteTagged xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
|
||||||
|
<d3p1:KeyValueOfNoteArrayOfTagsw0Ob5Kw8>
|
||||||
|
<d3p1:Key z:Ref="i2" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" />
|
||||||
|
<d3p1:Value />
|
||||||
|
</d3p1:KeyValueOfNoteArrayOfTagsw0Ob5Kw8>
|
||||||
|
</NoteTagged>
|
||||||
|
<Password>fa7d77716ab4b614012aef71d589ef1bd018e1e25438c8546d1a2ce83b52c5c4</Password>
|
||||||
|
<Picture>defaultpicture.png</Picture>
|
||||||
|
<TagList>
|
||||||
|
<Tags>
|
||||||
|
<Color>#5555FF</Color>
|
||||||
|
<Name>Tag 1</Name>
|
||||||
|
</Tags>
|
||||||
|
</TagList>
|
||||||
|
<UseTheme>
|
||||||
|
<ColorList xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
|
||||||
|
<d4p1:string>,,</d4p1:string>
|
||||||
|
</ColorList>
|
||||||
|
<Name></Name>
|
||||||
|
</UseTheme>
|
||||||
|
<Username>Benjamin</Username>
|
||||||
|
</User>
|
||||||
|
<User>
|
||||||
|
<Email>liammonchanin@gmail.com</Email>
|
||||||
|
<FavList />
|
||||||
|
<NoteList>
|
||||||
|
<Note z:Ref="i3" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" />
|
||||||
|
<Note z:Ref="i1" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" />
|
||||||
|
</NoteList>
|
||||||
|
<NoteTagged xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
|
||||||
|
<d3p1:KeyValueOfNoteArrayOfTagsw0Ob5Kw8>
|
||||||
|
<d3p1:Key z:Ref="i3" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" />
|
||||||
|
<d3p1:Value />
|
||||||
|
</d3p1:KeyValueOfNoteArrayOfTagsw0Ob5Kw8>
|
||||||
|
</NoteTagged>
|
||||||
|
<Password>dd13d2e59703e108138db99aadebdc3e308e175d5649061baf2764ab6c039a9b</Password>
|
||||||
|
<Picture>defaultpicture.png</Picture>
|
||||||
|
<TagList>
|
||||||
|
<Tags>
|
||||||
|
<Color>#5555FF</Color>
|
||||||
|
<Name>Tag 2</Name>
|
||||||
|
</Tags>
|
||||||
|
</TagList>
|
||||||
|
<UseTheme>
|
||||||
|
<ColorList xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
|
||||||
|
<d4p1:string>,,</d4p1:string>
|
||||||
|
</ColorList>
|
||||||
|
<Name></Name>
|
||||||
|
</UseTheme>
|
||||||
|
<Username>Liam</Username>
|
||||||
|
</User>
|
||||||
|
<User>
|
||||||
|
<Email>Macroutte@gmail.com</Email>
|
||||||
|
<FavList />
|
||||||
|
<NoteList>
|
||||||
|
<Note z:Id="i4" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/">
|
||||||
|
<Collaborators />
|
||||||
|
<CreationDate xmlns:d5p1="http://schemas.datacontract.org/2004/07/System" />
|
||||||
|
<Editors>
|
||||||
|
<User>
|
||||||
|
<Email>Macroutte@gmail.com</Email>
|
||||||
|
<FavList />
|
||||||
|
<NoteList>
|
||||||
|
<Note z:Ref="i4" />
|
||||||
|
</NoteList>
|
||||||
|
<NoteTagged xmlns:d7p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
|
||||||
|
<d7p1:KeyValueOfNoteArrayOfTagsw0Ob5Kw8>
|
||||||
|
<d7p1:Key z:Ref="i4" />
|
||||||
|
<d7p1:Value />
|
||||||
|
</d7p1:KeyValueOfNoteArrayOfTagsw0Ob5Kw8>
|
||||||
|
</NoteTagged>
|
||||||
|
<Password>2dd6f72e332902136f9f27bcae97ccf3dab2cfc45f5cea43a7fbb91847b04716</Password>
|
||||||
|
<Picture>defaultpicture.png</Picture>
|
||||||
|
<TagList>
|
||||||
|
<Tags>
|
||||||
|
<Color>#5555FF</Color>
|
||||||
|
<Name>Tag 3</Name>
|
||||||
|
</Tags>
|
||||||
|
</TagList>
|
||||||
|
<UseTheme>
|
||||||
|
<ColorList xmlns:d8p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
|
||||||
|
<d8p1:string>,,</d8p1:string>
|
||||||
|
</ColorList>
|
||||||
|
<Name></Name>
|
||||||
|
</UseTheme>
|
||||||
|
<Username>Brigitte</Username>
|
||||||
|
</User>
|
||||||
|
</Editors>
|
||||||
|
<ImageList />
|
||||||
|
<LogoPath>DefaultLogo.png</LogoPath>
|
||||||
|
<ModificationDate xmlns:d5p1="http://schemas.datacontract.org/2004/07/System" />
|
||||||
|
<Name>Note 3</Name>
|
||||||
|
<Owner>
|
||||||
|
<Email>Macroutte@gmail.com</Email>
|
||||||
|
<FavList />
|
||||||
|
<NoteList>
|
||||||
|
<Note z:Ref="i4" />
|
||||||
|
</NoteList>
|
||||||
|
<NoteTagged xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
|
||||||
|
<d6p1:KeyValueOfNoteArrayOfTagsw0Ob5Kw8>
|
||||||
|
<d6p1:Key z:Ref="i4" />
|
||||||
|
<d6p1:Value />
|
||||||
|
</d6p1:KeyValueOfNoteArrayOfTagsw0Ob5Kw8>
|
||||||
|
</NoteTagged>
|
||||||
|
<Password>2dd6f72e332902136f9f27bcae97ccf3dab2cfc45f5cea43a7fbb91847b04716</Password>
|
||||||
|
<Picture>defaultpicture.png</Picture>
|
||||||
|
<TagList>
|
||||||
|
<Tags>
|
||||||
|
<Color>#5555FF</Color>
|
||||||
|
<Name>Tag 3</Name>
|
||||||
|
</Tags>
|
||||||
|
</TagList>
|
||||||
|
<UseTheme>
|
||||||
|
<ColorList xmlns:d7p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
|
||||||
|
<d7p1:string>,,</d7p1:string>
|
||||||
|
</ColorList>
|
||||||
|
<Name></Name>
|
||||||
|
</UseTheme>
|
||||||
|
<Username>Brigitte</Username>
|
||||||
|
</Owner>
|
||||||
|
<Text></Text>
|
||||||
|
<logoPath>DefaultLogo.png</logoPath>
|
||||||
|
<name>Note 3</name>
|
||||||
|
</Note>
|
||||||
|
</NoteList>
|
||||||
|
<NoteTagged xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
|
||||||
|
<d3p1:KeyValueOfNoteArrayOfTagsw0Ob5Kw8>
|
||||||
|
<d3p1:Key z:Ref="i4" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" />
|
||||||
|
<d3p1:Value />
|
||||||
|
</d3p1:KeyValueOfNoteArrayOfTagsw0Ob5Kw8>
|
||||||
|
</NoteTagged>
|
||||||
|
<Password>2dd6f72e332902136f9f27bcae97ccf3dab2cfc45f5cea43a7fbb91847b04716</Password>
|
||||||
|
<Picture>defaultpicture.png</Picture>
|
||||||
|
<TagList>
|
||||||
|
<Tags>
|
||||||
|
<Color>#5555FF</Color>
|
||||||
|
<Name>Tag 3</Name>
|
||||||
|
</Tags>
|
||||||
|
</TagList>
|
||||||
|
<UseTheme>
|
||||||
|
<ColorList xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
|
||||||
|
<d4p1:string>,,</d4p1:string>
|
||||||
|
</ColorList>
|
||||||
|
<Name></Name>
|
||||||
|
</UseTheme>
|
||||||
|
<Username>Brigitte</Username>
|
||||||
|
</User>
|
||||||
|
</Database>
|
@ -1,46 +1,9 @@
|
|||||||
using Biblioteque_de_Class;
|
namespace notus;
|
||||||
using Windows.UI.Core;
|
|
||||||
|
public partial class ConnecPage : ContentPage
|
||||||
namespace notus;
|
{
|
||||||
public partial class ConnecPage : ContentPage
|
public ConnecPage()
|
||||||
{
|
{
|
||||||
User selectUser = (Application.Current as App).SelectedUser;
|
InitializeComponent();
|
||||||
Database db = (Application.Current as App).db;
|
}
|
||||||
public string Username { get; set; }
|
|
||||||
public string Password { get; set; }
|
|
||||||
|
|
||||||
public ConnecPage()
|
|
||||||
{
|
|
||||||
InitializeComponent();
|
|
||||||
BindingContext = this;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void Connec_Clicked(object sender, EventArgs e)
|
|
||||||
{
|
|
||||||
try
|
|
||||||
{
|
|
||||||
selectUser = db.GetUser(Username);
|
|
||||||
}
|
|
||||||
catch (NotFoundException)
|
|
||||||
{
|
|
||||||
DisplayAlert("Erreur", "Cet utilisateur n'existe pas" , "OK");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if (Database.ComparePassword(selectUser, HashCodeModel.GetSHA256Hash(Password).ToString()))
|
|
||||||
{
|
|
||||||
selectUser.IsConnected = true;
|
|
||||||
(Application.Current as App).SelectedUser = selectUser;
|
|
||||||
Navigation.PushAsync(new RecherPage());
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
DisplayAlert("Erreur", "Le mot de passe est incorrect", "OK");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private void Back_Clicked(object sender, EventArgs e)
|
|
||||||
{
|
|
||||||
Navigation.PopAsync();
|
|
||||||
}
|
|
||||||
}
|
}
|
@ -1,133 +1,81 @@
|
|||||||
<?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"
|
x:Class="notus.InscrPage"
|
||||||
x:Class="notus.InscrPage"
|
Title="InscrPage">
|
||||||
Title="InscrPage"
|
|
||||||
BackgroundColor="#1C1C1C">
|
<Grid BackgroundColor="#1C1C1C">
|
||||||
<Shell.BackButtonBehavior>
|
<Grid.ColumnDefinitions>
|
||||||
<BackButtonBehavior
|
<ColumnDefinition Width="1*"/>
|
||||||
IsVisible="False"
|
<ColumnDefinition Width="Auto"/>
|
||||||
IsEnabled="False"/>
|
<ColumnDefinition Width="1*"/>
|
||||||
</Shell.BackButtonBehavior>
|
</Grid.ColumnDefinitions>
|
||||||
<Grid>
|
|
||||||
<Grid.RowDefinitions>
|
<Grid.RowDefinitions>
|
||||||
<RowDefinition Height="2*"/>
|
<RowDefinition Height="1*"/>
|
||||||
<RowDefinition Height="80"/>
|
<RowDefinition Height="150"/>
|
||||||
<RowDefinition Height="2*"/>
|
<RowDefinition Height="150"/>
|
||||||
<RowDefinition Height="1.8*"/>
|
<RowDefinition Height="150"/>
|
||||||
<RowDefinition Height="1*"/>
|
<RowDefinition Height="1*"/>
|
||||||
<RowDefinition Height="1.8*"/>
|
</Grid.RowDefinitions>
|
||||||
<RowDefinition Height="1*"/>
|
|
||||||
<RowDefinition Height="1.8*"/>
|
<Entry
|
||||||
<RowDefinition Height="1*"/>
|
Placeholder="Pseudo"
|
||||||
<RowDefinition Height="1.6*"/>
|
HorizontalOptions="Center"
|
||||||
<RowDefinition Height="4*"/>
|
VerticalOptions="Center"
|
||||||
</Grid.RowDefinitions>
|
WidthRequest="600"
|
||||||
|
HeightRequest="100"
|
||||||
<Grid.ColumnDefinitions>
|
FontSize="32"
|
||||||
<ColumnDefinition Width="4*"/>
|
Grid.Column="1"
|
||||||
<ColumnDefinition Width="4*"/>
|
Grid.Row="1"
|
||||||
<ColumnDefinition Width="0.9*"/>
|
TextColor="#74fabd"
|
||||||
<ColumnDefinition Width="0.2*"/>
|
BackgroundColor="#4A4A4A"
|
||||||
<ColumnDefinition Width="4*"/>
|
PlaceholderColor="#74fabd"
|
||||||
</Grid.ColumnDefinitions>
|
/>
|
||||||
|
|
||||||
<ImageButton
|
<Entry
|
||||||
Source="return.png"
|
Placeholder="Mot de passe"
|
||||||
Aspect="AspectFit"
|
HorizontalOptions="Center"
|
||||||
Grid.Column="0"
|
VerticalOptions="Center"
|
||||||
Grid.Row="0"
|
WidthRequest="600"
|
||||||
HorizontalOptions="Start"
|
HeightRequest="100"
|
||||||
VerticalOptions="Start"
|
FontSize="32"
|
||||||
WidthRequest="50"
|
Grid.Column="1"
|
||||||
HeightRequest="50"
|
Grid.Row="2"
|
||||||
BackgroundColor="#4A4A4A"
|
IsPassword="true"
|
||||||
Margin="10,10,0,0"
|
TextColor="#74fabd"
|
||||||
CornerRadius="50"
|
BackgroundColor="#4A4A4A"
|
||||||
Clicked="Back_Clicked"
|
PlaceholderColor="#74fabd"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<Label
|
<Entry
|
||||||
Grid.Column="1"
|
Placeholder ="Verif mot de passe"
|
||||||
Grid.ColumnSpan="3"
|
HorizontalOptions="Center"
|
||||||
Grid.Row="1"
|
VerticalOptions="Center"
|
||||||
HorizontalOptions="Center"
|
WidthRequest="600"
|
||||||
VerticalOptions="Center"
|
HeightRequest="100"
|
||||||
Text="Inscription"
|
FontSize="32"
|
||||||
TextColor="#74fabd"
|
Grid.Column="1"
|
||||||
FontSize="80"
|
Grid.Row="3"
|
||||||
FontFamily="strong"
|
IsPassword="true"
|
||||||
/>
|
TextColor="#74fabd"
|
||||||
|
BackgroundColor="#4A4A4A"
|
||||||
<Entry
|
PlaceholderColor="#74fabd"
|
||||||
Placeholder="Pseudo"
|
/>
|
||||||
FontSize="22"
|
|
||||||
Grid.Column="1"
|
<Button
|
||||||
Grid.ColumnSpan="3"
|
Text="Valider"
|
||||||
Grid.Row="3"
|
Grid.Column="1"
|
||||||
TextColor="#74fabd"
|
Grid.Row="4"
|
||||||
BackgroundColor="#4A4A4A"
|
HorizontalOptions="End"
|
||||||
PlaceholderColor="#74fabd"
|
VerticalOptions="Center"
|
||||||
Text="{Binding Username}"
|
WidthRequest="110"
|
||||||
/>
|
HeightRequest="70"
|
||||||
|
BackgroundColor="#74fabd"
|
||||||
<Entry
|
TextColor="Black"
|
||||||
Placeholder="Mot de passe"
|
CornerRadius="10"
|
||||||
FontSize="22"
|
/>
|
||||||
Grid.Column="1"
|
|
||||||
Grid.ColumnSpan="3"
|
</Grid>
|
||||||
Grid.Row="5"
|
|
||||||
IsPassword="true"
|
</ContentPage>
|
||||||
TextColor="#74fabd"
|
|
||||||
BackgroundColor="#4A4A4A"
|
|
||||||
PlaceholderColor="#74fabd"
|
|
||||||
Text="{Binding Password}"
|
|
||||||
/>
|
|
||||||
|
|
||||||
<Entry
|
|
||||||
Placeholder ="Verif mot de passe"
|
|
||||||
FontSize="22"
|
|
||||||
Grid.Column="1"
|
|
||||||
Grid.ColumnSpan="3"
|
|
||||||
Grid.Row="7"
|
|
||||||
IsPassword="true"
|
|
||||||
TextColor="#74fabd"
|
|
||||||
BackgroundColor="#4A4A4A"
|
|
||||||
PlaceholderColor="#74fabd"
|
|
||||||
Text="{Binding RePassword}"
|
|
||||||
/>
|
|
||||||
|
|
||||||
<Button
|
|
||||||
WidthRequest="80"
|
|
||||||
Grid.Column="2"
|
|
||||||
Grid.ColumnSpan="1"
|
|
||||||
Grid.Row="9"
|
|
||||||
Text="Valider"
|
|
||||||
TextColor="Black"
|
|
||||||
BackgroundColor="#74fabd"
|
|
||||||
Clicked="Inscription_Clicked"
|
|
||||||
/>
|
|
||||||
|
|
||||||
<Label
|
|
||||||
x:Name="userUser"
|
|
||||||
Text="User Already exist."
|
|
||||||
IsVisible="false"
|
|
||||||
Grid.Column="1"
|
|
||||||
Grid.Row="4"
|
|
||||||
TextColor="Red"
|
|
||||||
/>
|
|
||||||
|
|
||||||
<Label
|
|
||||||
x:Name="shortPassword"
|
|
||||||
Text="Password to short."
|
|
||||||
IsVisible="false"
|
|
||||||
Grid.Column="1"
|
|
||||||
Grid.Row="6"
|
|
||||||
TextColor="Red"
|
|
||||||
/>
|
|
||||||
|
|
||||||
</Grid>
|
|
||||||
|
|
||||||
</ContentPage>
|
|
||||||
|
|
||||||
|
@ -1,179 +0,0 @@
|
|||||||
<?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">
|
|
||||||
|
|
||||||
<Shell.BackButtonBehavior>
|
|
||||||
<BackButtonBehavior
|
|
||||||
IsVisible="False"
|
|
||||||
IsEnabled="False"/>
|
|
||||||
</Shell.BackButtonBehavior>
|
|
||||||
<Grid>
|
|
||||||
<Grid.ColumnDefinitions>
|
|
||||||
<ColumnDefinition Width="4*"/>
|
|
||||||
<ColumnDefinition Width="6*"/>
|
|
||||||
</Grid.ColumnDefinitions>
|
|
||||||
|
|
||||||
<ImageButton
|
|
||||||
Source="return.png"
|
|
||||||
Aspect="AspectFit"
|
|
||||||
Grid.Column="0"
|
|
||||||
Grid.Row="0"
|
|
||||||
HorizontalOptions="Start"
|
|
||||||
VerticalOptions="Start"
|
|
||||||
WidthRequest="50"
|
|
||||||
HeightRequest="50"
|
|
||||||
BackgroundColor="#4A4A4A"
|
|
||||||
Margin="10,10,0,0"
|
|
||||||
CornerRadius="50"
|
|
||||||
Clicked="Back_Clicked"
|
|
||||||
/>
|
|
||||||
|
|
||||||
<Grid Grid.Column="0">
|
|
||||||
<Grid.RowDefinitions>
|
|
||||||
<RowDefinition Height="1*"/>
|
|
||||||
<RowDefinition Height="250"/>
|
|
||||||
<RowDefinition Height="20"/>
|
|
||||||
<RowDefinition Height="20"/>
|
|
||||||
<RowDefinition Height="90"/>
|
|
||||||
<RowDefinition Height="100"/>
|
|
||||||
<RowDefinition Height="90"/>
|
|
||||||
<RowDefinition Height="1*"/>
|
|
||||||
</Grid.RowDefinitions>
|
|
||||||
|
|
||||||
<Image Source="{Binding ProfilPicture}"
|
|
||||||
HorizontalOptions="Center"
|
|
||||||
VerticalOptions="Center"
|
|
||||||
Grid.Row="1"
|
|
||||||
BackgroundColor="#4A4A4A"
|
|
||||||
WidthRequest="250"
|
|
||||||
HeightRequest="250"
|
|
||||||
Margin="0,0,0,30"
|
|
||||||
/>
|
|
||||||
|
|
||||||
<Label Text="{Binding Username}" VerticalOptions="Center"
|
|
||||||
Grid.Row="2"
|
|
||||||
BackgroundColor="#4A4A4A"
|
|
||||||
WidthRequest="260"
|
|
||||||
HeightRequest="60"
|
|
||||||
TextColor="#74fabd"/>
|
|
||||||
|
|
||||||
<Button
|
|
||||||
VerticalOptions="End"
|
|
||||||
Text="Modifier Profil"
|
|
||||||
TextColor="#74fabd"
|
|
||||||
WidthRequest="300"
|
|
||||||
BackgroundColor="#4A4A4A"
|
|
||||||
Grid.Row="4"
|
|
||||||
HeightRequest="80"
|
|
||||||
FontSize="30"
|
|
||||||
Margin="0,20,0,0"
|
|
||||||
Clicked="Modify_Profil"
|
|
||||||
/>
|
|
||||||
|
|
||||||
<Button
|
|
||||||
VerticalOptions="Center"
|
|
||||||
Text="Modifier Theme"
|
|
||||||
TextColor="#74fabd"
|
|
||||||
WidthRequest="300"
|
|
||||||
BackgroundColor="#4A4A4A"
|
|
||||||
Grid.Row="5"
|
|
||||||
HeightRequest="80"
|
|
||||||
FontSize="30"
|
|
||||||
Margin="0,20,0,0"
|
|
||||||
Clicked="Modify_Theme"
|
|
||||||
/>
|
|
||||||
|
|
||||||
<Button
|
|
||||||
VerticalOptions="Start"
|
|
||||||
Text="se déconnecter"
|
|
||||||
FontSize="30"
|
|
||||||
TextColor="#74fabd"
|
|
||||||
WidthRequest="300"
|
|
||||||
BackgroundColor="#4A4A4A"
|
|
||||||
Grid.Row="6"
|
|
||||||
HeightRequest="80"
|
|
||||||
Margin="0,20,0,0"
|
|
||||||
Clicked="Disconnect_Clicked"
|
|
||||||
/>
|
|
||||||
|
|
||||||
</Grid>
|
|
||||||
|
|
||||||
<Grid x:Name="TagsZone" Grid.Column="1" Margin="40" BackgroundColor="#4A4A4A" IsVisible="True">
|
|
||||||
<Grid.RowDefinitions>
|
|
||||||
<RowDefinition Height="1*"/>
|
|
||||||
<RowDefinition Height="250"/>
|
|
||||||
<RowDefinition Height="40"/>
|
|
||||||
<RowDefinition Height="1*"/>
|
|
||||||
</Grid.RowDefinitions>
|
|
||||||
<ScrollView Grid.Row="1" VerticalScrollBarVisibility="Always" HorizontalScrollBarVisibility="Never">
|
|
||||||
<StackLayout x:Name="TagListContainer" Padding="10" Spacing="5">
|
|
||||||
<ListView x:Name="TagListView" SeparatorVisibility="None" BackgroundColor="Transparent">
|
|
||||||
<ListView.ItemTemplate>
|
|
||||||
<DataTemplate>
|
|
||||||
<ViewCell>
|
|
||||||
<Grid>
|
|
||||||
<Grid.ColumnDefinitions>
|
|
||||||
<ColumnDefinition Width="40" />
|
|
||||||
<ColumnDefinition Width="*" />
|
|
||||||
<ColumnDefinition Width="Auto" />
|
|
||||||
<ColumnDefinition Width="Auto" />
|
|
||||||
<ColumnDefinition Width="Auto" />
|
|
||||||
</Grid.ColumnDefinitions>
|
|
||||||
<BoxView Grid.Column="0" BackgroundColor="{Binding Color}" WidthRequest="40" />
|
|
||||||
<Label Grid.Column="1" Text="{Binding Name}" VerticalTextAlignment="Center" />
|
|
||||||
<Button Grid.Column="2" Text="Modify" Clicked="Modify_Clicked"/>
|
|
||||||
<Button Grid.Column="3" Text="Delete" Clicked="Delete_Clicked" VerticalOptions="End"/>
|
|
||||||
</Grid>
|
|
||||||
</ViewCell>
|
|
||||||
</DataTemplate>
|
|
||||||
</ListView.ItemTemplate>
|
|
||||||
</ListView>
|
|
||||||
</StackLayout>
|
|
||||||
</ScrollView>
|
|
||||||
|
|
||||||
<Grid Grid.Row="2" HorizontalOptions="Center">
|
|
||||||
<Grid.ColumnDefinitions>
|
|
||||||
<ColumnDefinition Width="*" />
|
|
||||||
<ColumnDefinition Width="Auto" />
|
|
||||||
</Grid.ColumnDefinitions>
|
|
||||||
|
|
||||||
<Button Grid.Column="0" Text="Add" Command="{Binding AddTagCommand}" HorizontalOptions="Center" />
|
|
||||||
</Grid>
|
|
||||||
</Grid>
|
|
||||||
|
|
||||||
<Grid x:Name="ProfilZone" Grid.Column="1" Margin="40" BackgroundColor="#4A4A4A" IsVisible="false">
|
|
||||||
<Grid.RowDefinitions>
|
|
||||||
<RowDefinition Height="1*"/>
|
|
||||||
<RowDefinition Height="250"/>
|
|
||||||
<RowDefinition Height="20"/>
|
|
||||||
<RowDefinition Height="20"/>
|
|
||||||
<RowDefinition Height="90"/>
|
|
||||||
<RowDefinition Height="100"/>
|
|
||||||
<RowDefinition Height="90"/>
|
|
||||||
<RowDefinition Height="1*"/>
|
|
||||||
</Grid.RowDefinitions>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</Grid>
|
|
||||||
<Grid x:Name="ThemeZone" Grid.Column="1" Margin="40" BackgroundColor="#4A4A4A" IsVisible="false">
|
|
||||||
<Grid.RowDefinitions>
|
|
||||||
<RowDefinition Height="1*"/>
|
|
||||||
<RowDefinition Height="250"/>
|
|
||||||
<RowDefinition Height="20"/>
|
|
||||||
<RowDefinition Height="20"/>
|
|
||||||
<RowDefinition Height="90"/>
|
|
||||||
<RowDefinition Height="100"/>
|
|
||||||
<RowDefinition Height="90"/>
|
|
||||||
<RowDefinition Height="1*"/>
|
|
||||||
</Grid.RowDefinitions>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</Grid>
|
|
||||||
</Grid>
|
|
||||||
</ContentPage>
|
|
@ -1,101 +0,0 @@
|
|||||||
using Microsoft.Maui.Controls;
|
|
||||||
using Biblioteque_de_Class;
|
|
||||||
using Notus_Persistance;
|
|
||||||
using NHibernate.Mapping;
|
|
||||||
using System.Collections.ObjectModel;
|
|
||||||
|
|
||||||
namespace notus;
|
|
||||||
|
|
||||||
public partial class ProfilPage : ContentPage
|
|
||||||
{
|
|
||||||
|
|
||||||
public User SelectedUser = (Application.Current as App).SelectedUser;
|
|
||||||
private string username;
|
|
||||||
public string Username
|
|
||||||
{
|
|
||||||
get => username;
|
|
||||||
set
|
|
||||||
{
|
|
||||||
username = value;
|
|
||||||
OnPropertyChanged(nameof(Username));
|
|
||||||
(Application.Current as App).SelectedUser.Username = username;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
private string password;
|
|
||||||
public string Password
|
|
||||||
{
|
|
||||||
get => password;
|
|
||||||
set
|
|
||||||
{
|
|
||||||
password = value;
|
|
||||||
OnPropertyChanged(nameof(Password));
|
|
||||||
(Application.Current as App).SelectedUser.Password = password;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
private string profilPicture;
|
|
||||||
public string ProfilPicture
|
|
||||||
{
|
|
||||||
get => profilPicture;
|
|
||||||
set
|
|
||||||
{
|
|
||||||
profilPicture = value;
|
|
||||||
OnPropertyChanged(nameof(ProfilPicture));
|
|
||||||
(Application.Current as App).SelectedUser.Picture = profilPicture;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProfilPage()
|
|
||||||
{
|
|
||||||
InitializeComponent();
|
|
||||||
Username = SelectedUser.Username;
|
|
||||||
Password = SelectedUser.Password;
|
|
||||||
ProfilPicture = SelectedUser.Picture;
|
|
||||||
BindingContext = this;
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
private void Back_Clicked(object sender, EventArgs e)
|
|
||||||
{
|
|
||||||
Navigation.PopAsync();
|
|
||||||
}
|
|
||||||
|
|
||||||
private void Disconnect_Clicked(object sender, EventArgs e)
|
|
||||||
{
|
|
||||||
(Application.Current as App).SelectedUser.IsConnected = false;
|
|
||||||
Navigation.PopAsync();
|
|
||||||
Navigation.PopAsync();
|
|
||||||
Navigation.PopAsync();
|
|
||||||
(Application.Current as App).SelectedUser = null;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void AddTag_Clicked(object sender, EventArgs e)
|
|
||||||
{
|
|
||||||
// Handle add tag action
|
|
||||||
// Show color picker and name input dialog
|
|
||||||
// Create a new Tag object and add it to the Tags collection
|
|
||||||
}
|
|
||||||
|
|
||||||
private void Modify_Clicked(object sender, EventArgs e)
|
|
||||||
{
|
|
||||||
// Handle modify action for the tag
|
|
||||||
}
|
|
||||||
|
|
||||||
private void Delete_Clicked(object sender, EventArgs e)
|
|
||||||
{
|
|
||||||
// Handle delete action for the tag
|
|
||||||
}
|
|
||||||
|
|
||||||
private void Modify_Profil(object sender, EventArgs e)
|
|
||||||
{
|
|
||||||
if (ProfilZone.IsVisible == true) { ProfilZone.IsVisible = false; return; }
|
|
||||||
ThemeZone.IsVisible = false;
|
|
||||||
ProfilZone.IsVisible = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void Modify_Theme(object sender, EventArgs e)
|
|
||||||
{
|
|
||||||
if (ThemeZone.IsVisible == true) { ThemeZone.IsVisible = false; return;}
|
|
||||||
ProfilZone.IsVisible = false;
|
|
||||||
ThemeZone.IsVisible = true;
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,152 +1,133 @@
|
|||||||
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||||
xmlns:toolkit="http://schemas.microsoft.com/dotnet/2021/maui/toolkit"
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||||
xmlns:muxc = "using:Microsoft.UI.Xaml.Controls"
|
xmlns:toolkit="http://schemas.microsoft.com/dodnet/2022/maui/toolkit"
|
||||||
x:Class="notus.RecherPage"
|
x:Class="notus.RecherPage"
|
||||||
Title="Main Page"
|
Title="RecherPage"
|
||||||
BackgroundColor="#1C1C1C">
|
BackgroundColor="#1C1C1C">
|
||||||
|
|
||||||
<Shell.BackButtonBehavior>
|
<Grid>
|
||||||
<BackButtonBehavior
|
<Grid.RowDefinitions>
|
||||||
IsVisible="False"
|
<RowDefinition Height="Auto"/>
|
||||||
IsEnabled="False"/>
|
<RowDefinition Height="1.5*"/>
|
||||||
</Shell.BackButtonBehavior>
|
<RowDefinition Height="1*"/>
|
||||||
<ContentPage.Content>
|
<RowDefinition Height="1.8*"/>
|
||||||
<Grid>
|
<RowDefinition Height="1*"/>
|
||||||
|
<RowDefinition Height="1.8*"/>
|
||||||
<Grid.ColumnDefinitions>
|
<RowDefinition Height="1*"/>
|
||||||
<ColumnDefinition x:Name="MasterColumn" Width="320" />
|
<RowDefinition Height="1*"/>
|
||||||
<ColumnDefinition x:Name="DetailColumn" Width="*" />
|
<RowDefinition Height="4*"/>
|
||||||
</Grid.ColumnDefinitions>
|
</Grid.RowDefinitions>
|
||||||
|
|
||||||
<Border Background="#6E6E6E" Grid.Column="0" Grid.RowSpan="3" />
|
<Grid.ColumnDefinitions>
|
||||||
<Grid Margin="0,11,0,13" Grid.Column="0">
|
<ColumnDefinition Width="Auto"/>
|
||||||
<Grid.RowDefinitions>
|
<ColumnDefinition Width="1*"/>
|
||||||
<RowDefinition Height="Auto" />
|
<ColumnDefinition Width="1*"/>
|
||||||
<RowDefinition Height="Auto" />
|
<ColumnDefinition Width="Auto"/>
|
||||||
<RowDefinition Height="*" />
|
<ColumnDefinition Width="Auto"/>
|
||||||
</Grid.RowDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
|
|
||||||
<Grid.ColumnDefinitions>
|
<Border
|
||||||
<ColumnDefinition Width="*" />
|
Background="#6E6E6E"
|
||||||
</Grid.ColumnDefinitions>
|
Grid.Column="0"
|
||||||
|
Grid.RowSpan="9"
|
||||||
<SearchBar Placeholder="Search Note" Text="{Binding SearchNoteText}" HorizontalOptions="Start" Margin="10" VerticalOptions="Center" WidthRequest="300" HeightRequest="50" FontSize="25" TextColor="#74fabd" BackgroundColor="#4A4A4A" PlaceholderColor="#74fabd" TextChanged="OnSearchNoteTextChanged" />
|
/>
|
||||||
<CheckBox x:Name="FavoritesCheckBox" CheckedChanged="FavoritesFilter_CheckedChanged" WidthRequest="50" HeightRequest="50" Margin="40,0,0,0" HorizontalOptions="Start" VerticalOptions="Center" Grid.Row="1" />
|
|
||||||
<ImageButton Source="tagsfilter.png" BackgroundColor="#4A4A4A" Clicked="TagsFilter_Clicked" WidthRequest="50" HeightRequest="50" CornerRadius="50" Margin="20" HorizontalOptions="Center" VerticalOptions="Center" Grid.Row="1"/>
|
<ImageButton
|
||||||
<ImageButton Source="Datefilter.png" BackgroundColor="#4A4A4A" Clicked="DatesFilter_Clicked" WidthRequest="50" HeightRequest="50" CornerRadius="50" Margin="20" HorizontalOptions="End" VerticalOptions="Center" Grid.Row="1"/>
|
Source="profil.png"
|
||||||
<ScrollView x:Name="TheScrollView" Grid.Row="2" Grid.Column="0" VerticalOptions="Start" Margin="5,5,5,5">
|
Aspect="AspectFit"
|
||||||
<ContentView>
|
Grid.Column="4"
|
||||||
<ListView ItemsSource="{Binding NoteList, Mode=TwoWay}" ItemSelected="NoteListView_ItemSelected" VerticalOptions="StartAndExpand">
|
Grid.Row="0"
|
||||||
<ListView.ItemTemplate>
|
HorizontalOptions="Start"
|
||||||
<DataTemplate>
|
VerticalOptions="Start"
|
||||||
<ViewCell>
|
WidthRequest="200"
|
||||||
<StackLayout Orientation="Horizontal" HeightRequest="40" Padding="3" Margin="3" BackgroundColor="#4A4A4A" MinimumWidthRequest="400" MaximumWidthRequest="400">
|
HeightRequest="120"
|
||||||
<CheckBox IsChecked="{Binding IsFavorite, Mode=TwoWay}" CheckedChanged="FavoriteCheckBox_CheckedChanged" HeightRequest="20" HorizontalOptions="End" VerticalOptions="Center"/>
|
BackgroundColor="#6E6E6E"
|
||||||
<StackLayout Orientation="Horizontal">
|
CornerRadius="10"
|
||||||
<Image Source="{Binding LogoPath}" HorizontalOptions="Start" VerticalOptions="Center"/>
|
/>
|
||||||
<Label Text="{Binding Name}" TextColor="#74fabd" HorizontalOptions="Center" VerticalOptions="Center"/>
|
|
||||||
</StackLayout>
|
<ImageButton
|
||||||
</StackLayout>
|
Source="supp.png"
|
||||||
</ViewCell>
|
Aspect="AspectFill"
|
||||||
</DataTemplate>
|
Grid.Column="2"
|
||||||
</ListView.ItemTemplate>
|
Grid.Row="0"
|
||||||
</ListView>
|
Margin="20"
|
||||||
</ContentView>
|
HorizontalOptions="End"
|
||||||
</ScrollView>
|
VerticalOptions="Start"
|
||||||
</Grid>
|
WidthRequest="50"
|
||||||
<ImageButton Source="create.png" BackgroundColor="#4A4A4A" Clicked="CreateNote_Clicked" WidthRequest="50" HeightRequest="50" CornerRadius="50" Margin="20" HorizontalOptions="Start" VerticalOptions="End" />
|
HeightRequest="50"
|
||||||
<Grid Grid.Row="0" Grid.Column="1">
|
BackgroundColor="#4A4A4A"
|
||||||
<Grid.RowDefinitions>
|
CornerRadius="50"
|
||||||
<RowDefinition Height="Auto" />
|
/>
|
||||||
<RowDefinition Height="*" />
|
|
||||||
</Grid.RowDefinitions>
|
<Label
|
||||||
|
Text="Nom de la note"
|
||||||
<Grid.ColumnDefinitions>
|
Grid.Column="1"
|
||||||
<ColumnDefinition Width="350" />
|
Grid.Row="0"
|
||||||
<ColumnDefinition Width="*" />
|
TextColor="#74fabd"
|
||||||
</Grid.ColumnDefinitions>
|
Margin="20"
|
||||||
|
FontSize="34"
|
||||||
<ImageButton Source="{Binding LogoPath}" Aspect="AspectFit" Grid.Column="0" Grid.Row="0" Margin="20" HorizontalOptions="Start" VerticalOptions="Start" WidthRequest="50" HeightRequest="50" BackgroundColor="#4A4A4A" CornerRadius="50" />
|
BackgroundColor="#4A4A4A"
|
||||||
<Entry Text="{Binding Name}" Grid.Column="0" Grid.Row="0" TextColor="#74fabd" Margin="20" FontSize="21" BackgroundColor="#4A4A4A" WidthRequest="250" HeightRequest="50" HorizontalOptions="End" VerticalOptions="Start" />
|
WidthRequest="250"
|
||||||
<ImageButton Source="supp.png" Clicked="Delete_Note" Aspect="AspectFill" Grid.Column="2" Grid.Row="0" Margin="20" HorizontalOptions="Start" VerticalOptions="Start" WidthRequest="50" HeightRequest="50" BackgroundColor="#4A4A4A" CornerRadius="50" />
|
HeightRequest="50"
|
||||||
<ImageButton Source="AddUser.png" Clicked="AddUser_Clicked" Grid.Column="2" Grid.Row="0" BackgroundColor="#4A4A4A" Margin="120,20,20,20" HorizontalOptions="Start" VerticalOptions="Start" WidthRequest="50" HeightRequest="50" CornerRadius="50"/>
|
HorizontalOptions="Center"
|
||||||
<ImageButton Source="{Binding ProfilPicture}" Clicked="Profil_Clicked" Aspect="AspectFit" Grid.Column="2" Grid.Row="0" HorizontalOptions="End" VerticalOptions="Start" WidthRequest="200" HeightRequest="120" BackgroundColor="#6E6E6E"/>
|
VerticalOptions="Start"
|
||||||
|
BindingContext="NomDeLaNoteSelected"
|
||||||
<Editor
|
/>
|
||||||
x:Name="textZone"
|
|
||||||
Placeholder="Text"
|
<ImageButton
|
||||||
FontSize="18"
|
Source="edit.png"
|
||||||
Text="{Binding Text, Mode=TwoWay}"
|
Aspect="AspectFit"
|
||||||
TextColor="#74fabd" BackgroundColor="#4A4A4A"
|
Grid.Column="1"
|
||||||
PlaceholderColor="#74fabd"
|
Grid.Row="0"
|
||||||
Grid.Row="1"
|
Margin="20"
|
||||||
Grid.Column="0"
|
HorizontalOptions="Start"
|
||||||
Grid.ColumnSpan="2"
|
VerticalOptions="Start"
|
||||||
VerticalTextAlignment="Start"
|
WidthRequest="50"
|
||||||
Margin="20"
|
HeightRequest="50"
|
||||||
TextChanged="OnEditorTextChanged"
|
BackgroundColor="#4A4A4A"
|
||||||
Completed="OnEditorCompleted"/>
|
CornerRadius="50"
|
||||||
|
/>
|
||||||
<Grid
|
|
||||||
x:Name="AddUser_Zone"
|
<Entry
|
||||||
Grid.Row="1"
|
Placeholder="Rechercher"
|
||||||
Grid.Column="0"
|
HorizontalOptions="Start"
|
||||||
Grid.ColumnSpan="2"
|
Margin="20"
|
||||||
BackgroundColor="#6E6E6E"
|
VerticalOptions="Center"
|
||||||
IsVisible="false"
|
WidthRequest="300"
|
||||||
Margin="20">
|
HeightRequest="50"
|
||||||
<Grid.RowDefinitions>
|
FontSize="25"
|
||||||
<RowDefinition Height="Auto" />
|
Grid.Column="0"
|
||||||
<RowDefinition Height="*" />
|
Grid.Row="0"
|
||||||
<RowDefinition Height="*" />
|
TextColor="#74fabd"
|
||||||
<RowDefinition Height="*" />
|
BackgroundColor="#4A4A4A"
|
||||||
</Grid.RowDefinitions>
|
PlaceholderColor="#74fabd"
|
||||||
<Grid.ColumnDefinitions>
|
/>
|
||||||
<ColumnDefinition Width="Auto" />
|
|
||||||
<ColumnDefinition Width="*" />
|
<VerticalStackLayout
|
||||||
<ColumnDefinition Width="*" />
|
Grid.Column="0"
|
||||||
<ColumnDefinition Width="*" />
|
Grid.RowSpan="5"
|
||||||
</Grid.ColumnDefinitions>
|
BindingContext="ARefaire"
|
||||||
|
/>
|
||||||
<SearchBar Placeholder="Search User" Text="{Binding SearchNoteText}" HorizontalOptions="Start" Margin="20" VerticalOptions="Center" WidthRequest="400" HeightRequest="50" FontSize="25" TextColor="#74fabd" BackgroundColor="#4A4A4A" PlaceholderColor="#74fabd" TextChanged="OnSearchNoteTextChanged" />
|
|
||||||
<ScrollView x:Name="UserListScrollView" Grid.Row="0" Grid.RowSpan="4" Grid.Column="0" Grid.ColumnSpan="3" VerticalOptions="Start" HorizontalOptions="Start" Margin="20,90,0,0" BackgroundColor="#4A4A4A" MinimumWidthRequest="600" MaximumWidthRequest="600">
|
<Editor
|
||||||
<ContentView>
|
Placeholder="Texte"
|
||||||
<ListView ItemsSource="{Binding UserList, Mode=TwoWay}" ItemSelected="NoteListView_ItemSelected" VerticalOptions="StartAndExpand">
|
IsSpellCheckEnabled="True"
|
||||||
<ListView.ItemTemplate>
|
FontSize="20"
|
||||||
<DataTemplate>
|
HorizontalOptions="Start"
|
||||||
<ViewCell>
|
VerticalOptions="Center"
|
||||||
<StackLayout Orientation="Horizontal" HeightRequest="40" Padding="3" Margin="3" BackgroundColor="#4A4A4A" MinimumWidthRequest="300" MaximumWidthRequest="300">
|
Margin="20"
|
||||||
<CheckBox IsChecked="{Binding AJouter, Mode=TwoWay}" CheckedChanged="AddUserCheckBox_CheckedChanged" HeightRequest="20" HorizontalOptions="End" VerticalOptions="Center"/>
|
WidthRequest="800"
|
||||||
<Image Source="{Binding ProfilPictureUser}" HorizontalOptions="Start" VerticalOptions="Center"/>
|
HeightRequest="750"
|
||||||
<Label Text="{Binding UserNameUser}" TextColor="#74fabd" HorizontalOptions="Center" VerticalOptions="Center"/>
|
Grid.Column="1"
|
||||||
</StackLayout>
|
Grid.ColumnSpan="4"
|
||||||
</ViewCell>
|
Grid.Row="4"
|
||||||
</DataTemplate>
|
Grid.RowSpan="3"
|
||||||
</ListView.ItemTemplate>
|
TextColor="White"
|
||||||
</ListView>
|
BackgroundColor="#4A4A4A"
|
||||||
</ContentView>
|
PlaceholderColor="#74fabd"
|
||||||
</ScrollView>
|
/>
|
||||||
|
|
||||||
<Button
|
</Grid>
|
||||||
x:Name="Valid"
|
|
||||||
Text="Valid"
|
|
||||||
Grid.Row="3"
|
|
||||||
Grid.Column="3"
|
|
||||||
TextColor="#74fabd"
|
|
||||||
WidthRequest="70"
|
|
||||||
HeightRequest="50"
|
|
||||||
HorizontalOptions="End"
|
|
||||||
VerticalOptions="End"
|
|
||||||
Margin="0,0,20,20"
|
|
||||||
Clicked="Valid_Clicked"
|
|
||||||
BackgroundColor="#4A4A4A"/>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</Grid>
|
|
||||||
</Grid>
|
|
||||||
</Grid>
|
|
||||||
</ContentPage.Content>
|
|
||||||
|
|
||||||
</ContentPage>
|
</ContentPage>
|
@ -1,361 +1,24 @@
|
|||||||
using Microsoft.Maui.Controls;
|
namespace notus;
|
||||||
using Biblioteque_de_Class;
|
|
||||||
using Notus_Persistance;
|
public partial class RecherPage : ContentPage
|
||||||
using System.Xml.Linq;
|
{
|
||||||
using System.Collections.ObjectModel;
|
public RecherPage()
|
||||||
using System.ComponentModel;
|
{
|
||||||
using System.Runtime.CompilerServices;
|
InitializeComponent();
|
||||||
using Microsoft.Maui;
|
}
|
||||||
using System.Globalization;
|
|
||||||
using System.Drawing;
|
void ProfilClicked()
|
||||||
|
{
|
||||||
namespace notus
|
|
||||||
{
|
}
|
||||||
public partial class RecherPage : ContentPage, INotifyPropertyChanged
|
|
||||||
{
|
void EditCLicked()
|
||||||
private ObservableCollection<Note> noteList;
|
{
|
||||||
public ObservableCollection<Note> NoteList
|
|
||||||
{
|
}
|
||||||
get { return noteList; }
|
|
||||||
set
|
void SuppClicked()
|
||||||
{
|
{
|
||||||
noteList = value;
|
|
||||||
OnPropertyChanged(nameof(NoteList));
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private ObservableCollection<Note> allNotes; // Store all notes initially
|
|
||||||
private Database db = (Application.Current as App).db;
|
|
||||||
public User SelectedUser = (Application.Current as App).SelectedUser;
|
|
||||||
public Note SelectedNote
|
|
||||||
{
|
|
||||||
get => (Application.Current as App).SelectedNote;
|
|
||||||
set
|
|
||||||
{
|
|
||||||
if ((Application.Current as App).SelectedNote != value)
|
|
||||||
{
|
|
||||||
(Application.Current as App).SelectedNote = value;
|
|
||||||
OnPropertyChanged(nameof(SelectedNote));
|
|
||||||
NoteList = new ObservableCollection<Note>(SelectedUser.NoteList);
|
|
||||||
allNotes = new ObservableCollection<Note>(NoteList);
|
|
||||||
Name = SelectedNote.Name;
|
|
||||||
Text = SelectedNote.Text;
|
|
||||||
LogoPath = SelectedNote.LogoPath;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private string name;
|
|
||||||
public string Name
|
|
||||||
{
|
|
||||||
get { return name; }
|
|
||||||
set
|
|
||||||
{
|
|
||||||
if (name != value)
|
|
||||||
{
|
|
||||||
name = value;
|
|
||||||
OnPropertyChanged(nameof(Name));
|
|
||||||
if (SelectedNote != null)
|
|
||||||
{
|
|
||||||
try
|
|
||||||
{
|
|
||||||
SelectedNote.ChangeName(SelectedUser, value);
|
|
||||||
}
|
|
||||||
catch (NotAllowedException)
|
|
||||||
{
|
|
||||||
Name = SelectedNote.Name;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
private string text;
|
|
||||||
public string Text
|
|
||||||
{
|
|
||||||
get { return text; }
|
|
||||||
set
|
|
||||||
{
|
|
||||||
if (text != value)
|
|
||||||
{
|
|
||||||
text = value;
|
|
||||||
OnPropertyChanged(nameof(Text));
|
|
||||||
if (SelectedNote != null)
|
|
||||||
{
|
|
||||||
try
|
|
||||||
{
|
|
||||||
SelectedNote.VerifyPrivilege(SelectedUser);
|
|
||||||
}
|
|
||||||
catch (NotAllowedException)
|
|
||||||
{
|
|
||||||
Text = SelectedNote.Text;
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
SelectedNote.Text = value;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
private string logoPath;
|
|
||||||
public string LogoPath
|
|
||||||
{
|
|
||||||
get { return logoPath; }
|
|
||||||
set
|
|
||||||
{
|
|
||||||
if (logoPath != value)
|
|
||||||
{
|
|
||||||
logoPath = value;
|
|
||||||
OnPropertyChanged(nameof(LogoPath));
|
|
||||||
if (SelectedNote != null)
|
|
||||||
{
|
|
||||||
try
|
|
||||||
{
|
|
||||||
SelectedNote.ChangeLogo(SelectedUser, value);
|
|
||||||
}
|
|
||||||
catch (NotAllowedException)
|
|
||||||
{
|
|
||||||
LogoPath = SelectedNote.LogoPath;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
public string SearchNoteText { get; set; }
|
|
||||||
public string ProfilPicture { get; set; }
|
|
||||||
public RecherPage()
|
|
||||||
{
|
|
||||||
InitializeComponent();
|
|
||||||
allNotes = new ObservableCollection<Note>(SelectedUser.NoteList);
|
|
||||||
NoteList = allNotes;
|
|
||||||
|
|
||||||
SelectedNote = SelectedUser.NoteList
|
|
||||||
.OrderByDescending(note => note.ModificationDate)
|
|
||||||
.FirstOrDefault();
|
|
||||||
|
|
||||||
(Application.Current as App).SelectedNote = SelectedNote;
|
|
||||||
Name = SelectedNote.Name;
|
|
||||||
Text = SelectedNote.Text;
|
|
||||||
LogoPath = SelectedNote.LogoPath;
|
|
||||||
ProfilPicture = SelectedUser.Picture;
|
|
||||||
BindingContext = this;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void CreateNote_Clicked(object sender, EventArgs e)
|
|
||||||
{
|
|
||||||
SelectedUser.CreateNote("", "");
|
|
||||||
SelectedNote = SelectedUser.NoteList[SelectedUser.NoteList.Count - 1];
|
|
||||||
}
|
|
||||||
|
|
||||||
private async void Profil_Clicked(object sender, EventArgs e)
|
|
||||||
{
|
|
||||||
(Application.Current as App).SelectedUser = SelectedUser;
|
|
||||||
await Navigation.PushAsync(new ProfilPage());
|
|
||||||
}
|
|
||||||
|
|
||||||
public event PropertyChangedEventHandler PropertyChanged;
|
|
||||||
|
|
||||||
protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null)
|
|
||||||
{
|
|
||||||
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
|
|
||||||
}
|
|
||||||
|
|
||||||
void OnEditorTextChanged(object sender, TextChangedEventArgs e)
|
|
||||||
{
|
|
||||||
string newText = e.NewTextValue;
|
|
||||||
if (SelectedNote != null)
|
|
||||||
{
|
|
||||||
SelectedNote.Text = newText;
|
|
||||||
(Application.Current as App).SelectedNote = SelectedNote;
|
|
||||||
}
|
|
||||||
Text = SelectedNote.Text;
|
|
||||||
}
|
|
||||||
|
|
||||||
void OnEditorCompleted(object sender, EventArgs e)
|
|
||||||
{
|
|
||||||
if (SelectedNote != null)
|
|
||||||
{
|
|
||||||
SelectedNote.Text = ((Editor)sender).Text;
|
|
||||||
(Application.Current as App).SelectedNote = SelectedNote;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private void NoteListView_ItemSelected(object sender, SelectedItemChangedEventArgs e)
|
|
||||||
{
|
|
||||||
if (e.SelectedItem is Note selectedNote)
|
|
||||||
{
|
|
||||||
SelectedNote = selectedNote;
|
|
||||||
(Application.Current as App).SelectedNote = SelectedNote;
|
|
||||||
Name = SelectedNote.Name;
|
|
||||||
Text = SelectedNote.Text;
|
|
||||||
LogoPath = SelectedNote.LogoPath;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private void AddUser_Clicked(object sender, EventArgs e)
|
|
||||||
{
|
|
||||||
if (AddUser_Zone.IsVisible)
|
|
||||||
AddUser_Zone.IsVisible = false;
|
|
||||||
else
|
|
||||||
AddUser_Zone.IsVisible = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void Valid_Clicked(object sender, EventArgs e)
|
|
||||||
{
|
|
||||||
AddUser_Zone.IsVisible = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void AddUserCheckBox_CheckedChanged(object sender, CheckedChangedEventArgs e)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Delete_Note(object sender, EventArgs e)
|
|
||||||
{
|
|
||||||
if (SelectedNote != null)
|
|
||||||
{
|
|
||||||
SelectedUser.NoteList.Remove(SelectedNote);
|
|
||||||
if (SelectedUser.NoteList.Count == 0)
|
|
||||||
{
|
|
||||||
SelectedUser.CreateNote("","");
|
|
||||||
}
|
|
||||||
SelectedNote = SelectedUser.NoteList.FirstOrDefault(); // Select the first note in the list (or null if empty)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private int windowHeight;
|
|
||||||
public int WindowHeight
|
|
||||||
{
|
|
||||||
get { return windowHeight; }
|
|
||||||
set
|
|
||||||
{
|
|
||||||
if (windowHeight != value)
|
|
||||||
{
|
|
||||||
windowHeight = value - 300;
|
|
||||||
OnPropertyChanged(nameof(WindowHeight));
|
|
||||||
UpdateScrollViewHeight();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
protected override void OnSizeAllocated(double width, double height)
|
|
||||||
{
|
|
||||||
base.OnSizeAllocated(width, height);
|
|
||||||
|
|
||||||
if (WindowHeight != (int)height)
|
|
||||||
{
|
|
||||||
WindowHeight = (int)height;
|
|
||||||
UpdateScrollViewHeight();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private void UpdateScrollViewHeight()
|
|
||||||
{
|
|
||||||
double availableHeight = WindowHeight;
|
|
||||||
TheScrollView.MaximumHeightRequest = availableHeight;
|
|
||||||
UserListScrollView.MinimumHeightRequest = availableHeight;
|
|
||||||
UserListScrollView.MaximumHeightRequest = availableHeight;
|
|
||||||
}
|
|
||||||
|
|
||||||
private bool isFavoritesFilterChecked = false;
|
|
||||||
private List<Tags> selectedTags = new List<Tags>();
|
|
||||||
private DateOnly startDate;
|
|
||||||
private DateOnly endDate;
|
|
||||||
private bool isfavorite;
|
|
||||||
public bool IsFavorite
|
|
||||||
{
|
|
||||||
get => isfavorite;
|
|
||||||
set
|
|
||||||
{
|
|
||||||
if (IsFavorite != value)
|
|
||||||
{
|
|
||||||
IsFavorite = value;
|
|
||||||
OnPropertyChanged(nameof(IsFavorite));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void OnSearchNoteTextChanged(object sender, TextChangedEventArgs e)
|
|
||||||
{
|
|
||||||
string searchText = e.NewTextValue;
|
|
||||||
if (string.IsNullOrEmpty(searchText))
|
|
||||||
{
|
|
||||||
ApplyFilters();
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
var filteredNotes = NoteList.Where(note => note.Name.Contains(searchText));
|
|
||||||
NoteList = new ObservableCollection<Note>(filteredNotes);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private void FavoritesFilter_CheckedChanged(object sender, CheckedChangedEventArgs e)
|
|
||||||
{
|
|
||||||
isFavoritesFilterChecked = e.Value;
|
|
||||||
ApplyFilters();
|
|
||||||
}
|
|
||||||
|
|
||||||
private void TagsFilter_Clicked(object sender, EventArgs e)
|
|
||||||
{
|
|
||||||
ApplyFilters();
|
|
||||||
}
|
|
||||||
|
|
||||||
private void DatesFilter_Clicked(object sender, EventArgs e)
|
|
||||||
{
|
|
||||||
ApplyFilters();
|
|
||||||
}
|
|
||||||
|
|
||||||
private void ApplyFilters()
|
|
||||||
{
|
|
||||||
|
|
||||||
var filteredNotes = allNotes;
|
|
||||||
|
|
||||||
if (isFavoritesFilterChecked)
|
|
||||||
{
|
|
||||||
var FavfilteredNotes = allNotes.Where(note => SelectedUser.FavList.Contains(note));
|
|
||||||
NoteList = new ObservableCollection<Note>(FavfilteredNotes);
|
|
||||||
filteredNotes = NoteList;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (selectedTags.Count > 0)
|
|
||||||
{
|
|
||||||
filteredNotes = (ObservableCollection<Note>)filteredNotes.Where(note => SelectedUser.NoteTagged[note].Any(tag => selectedTags.Contains(tag)));
|
|
||||||
}
|
|
||||||
|
|
||||||
if (startDate != default && endDate != default)
|
|
||||||
{
|
|
||||||
filteredNotes = (ObservableCollection<Note>)filteredNotes.Where(note => note.CreationDate >= startDate && note.CreationDate <= endDate || note.ModificationDate >= startDate && note.ModificationDate <= endDate);
|
|
||||||
}
|
|
||||||
|
|
||||||
foreach (var note in filteredNotes)
|
|
||||||
{
|
|
||||||
note.IsFavorite = SelectedUser.FavList.Contains(note);
|
|
||||||
IsFavorite = note.IsFavorite;
|
|
||||||
}
|
|
||||||
|
|
||||||
NoteList = new ObservableCollection<Note>(filteredNotes);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void FavoriteCheckBox_CheckedChanged(object sender, CheckedChangedEventArgs e)
|
|
||||||
{
|
|
||||||
CheckBox checkBox = (CheckBox)sender;
|
|
||||||
Note note = checkBox.BindingContext as Note;
|
|
||||||
|
|
||||||
if (note != null)
|
|
||||||
{
|
|
||||||
if (e.Value)
|
|
||||||
{
|
|
||||||
if(note.IsFavorite == false)
|
|
||||||
SelectedUser.AddFavorite(note);
|
|
||||||
(Application.Current as App).SelectedUser = SelectedUser;
|
|
||||||
allNotes = new ObservableCollection<Note>(SelectedUser.NoteList);
|
|
||||||
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if (note.IsFavorite == true)
|
|
||||||
SelectedUser.RemoveFavorite(note);
|
|
||||||
(Application.Current as App).SelectedUser = SelectedUser;
|
|
||||||
allNotes = new ObservableCollection<Note>(SelectedUser.NoteList);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
Loading…
Reference in new issue