conflit fix
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
commit
365742508e
@ -1,9 +1,28 @@
|
|||||||
|
using Biblioteque_de_Class;
|
||||||
|
|
||||||
namespace notus;
|
namespace notus;
|
||||||
|
|
||||||
public partial class ConnecPage : ContentPage
|
public partial class ConnecPage : ContentPage
|
||||||
{
|
{
|
||||||
public ConnecPage()
|
string mail = "";
|
||||||
|
string MDP = "";
|
||||||
|
|
||||||
|
public ConnecPage()
|
||||||
{
|
{
|
||||||
InitializeComponent();
|
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;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
@ -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,24 +1,23 @@
|
|||||||
|
using Microsoft.Maui.Controls;
|
||||||
|
using Biblioteque_de_Class;
|
||||||
|
using Notus_Persistance;
|
||||||
|
|
||||||
|
|
||||||
namespace notus;
|
namespace notus;
|
||||||
|
|
||||||
public partial class RecherPage : ContentPage
|
public partial class RecherPage : ContentPage
|
||||||
{
|
{
|
||||||
public RecherPage()
|
PersistenceManager manager = (Application.Current as App).manager;
|
||||||
|
public RecherPage()
|
||||||
{
|
{
|
||||||
|
manager.LoadDatabaseData();
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
|
ListNote.BindingContext = manager;
|
||||||
|
NomNote.BindingContext = manager;
|
||||||
}
|
}
|
||||||
|
|
||||||
void ProfilClicked()
|
private async void Profil_Clicked(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
|
await Navigation.PushAsync(new ProfilPage());
|
||||||
}
|
|
||||||
|
|
||||||
void EditCLicked()
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
void SuppClicked()
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in new issue