push de branche et ajout bouton selection de banque
continuous-integration/drone/push Build is passing Details

UI_Mobile
Lucas EVARD 2 years ago
parent 5ddc3b66f5
commit eeb0e5b4e2

@ -7,5 +7,35 @@
Text="Dashboard"
VerticalOptions="Center"
HorizontalOptions="Center" />
<Button
BackgroundColor="Red"
x:Name="Bouton"
WidthRequest="50"
HeightRequest="50"
HorizontalOptions="End"
Margin="0,0,40,0"
Clicked="OnClickedGestionBanque"
/>
<Label
IsVisible="false"
WidthRequest="50"
HeightRequest="50"
Margin="0,-50,0,0"
x:Name="ImgBanqueActuelle"
BackgroundColor="Aqua"
/>
<Button
IsVisible="false"
BackgroundColor="Black"
x:Name="BoutonRetour"
WidthRequest="50"
HeightRequest="50"
HorizontalOptions="End"
Margin="0,-50,40,0"
Clicked="OnClickedRetour"
/>
<HorizontalStackLayout>
</HorizontalStackLayout>
</VerticalStackLayout>
</ContentPage>

@ -1,4 +1,6 @@
using Model;
using Microsoft.Maui.Controls;
using Microsoft.Maui.Controls.PlatformConfiguration.TizenSpecific;
namespace IHM;
@ -15,9 +17,29 @@ public partial class DashBoard : ContentPage
{
loadInscription();
}
}
async void OnClickedGestionBanque(object sender, EventArgs args)
{
Bouton.IsEnabled = false;
Bouton.BackgroundColor = Color.FromRgb(192, 192, 192);
await Bouton.TranslateTo(-130, 35, 50);
await Bouton.ScaleXTo(7.5, 50);
await Bouton.ScaleYTo(3, 50);
BoutonRetour.IsVisible = true;
ImgBanqueActuelle.IsVisible = true;
//await Navigation.PushModalAsync(new GestionBanque());
}
async void OnClickedRetour(object sender, EventArgs args)
{
await Bouton.ScaleXTo(1, 50);
await Bouton.ScaleYTo(1, 50);
await Bouton.TranslateTo(0,0,50);
ImgBanqueActuelle.IsVisible = false;
BoutonRetour.IsVisible = false;
Bouton.IsEnabled = true;
}
public async void loadInscription()

@ -0,0 +1,14 @@
<?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"
x:Class="IHM.GestionBanque"
MaximumWidthRequest="130"
HeightRequest="500"
Title="GestionBanque">
<VerticalStackLayout>
<Label
Text="Welcome to .NET MAUI!"
VerticalOptions="Center"
HorizontalOptions="Center" />
</VerticalStackLayout>
</ContentPage>

@ -0,0 +1,9 @@
namespace IHM;
public partial class GestionBanque : ContentPage
{
public GestionBanque()
{
InitializeComponent();
}
}

@ -79,6 +79,12 @@
<MauiXaml Update="ForgetPassword.xaml">
<Generator>MSBuild:Compile</Generator>
</MauiXaml>
<MauiXaml Update="GestionBanque.xaml">
<Generator>MSBuild:Compile</Generator>
</MauiXaml>
<MauiXaml Update="NewPage1.xaml">
<Generator>MSBuild:Compile</Generator>
</MauiXaml>
<MauiXaml Update="Operations.xaml">
<Generator>MSBuild:Compile</Generator>
</MauiXaml>

@ -17,8 +17,6 @@ public partial class Settings : ContentPage
}
private async void NavigateTo()
{
OnBackButtonPressed();
Debug.WriteLine(base.OnBackButtonPressed());
await Navigation.PushModalAsync(new MainPage());
}

Loading…
Cancel
Save