commit
0d24d0b43a
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<ViewCell xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||
x:Class="IHM.Composant.BanqueDispo">
|
||||
|
||||
<Border StrokeShape="RoundRectangle 20" BackgroundColor="{StaticResource Tertiary}" Padding="20">
|
||||
<VerticalStackLayout>
|
||||
<Image Source="{Binding ImageBanque}"/>
|
||||
<Button Text="CHOISIR" Clicked="Banque_Clicked"/>
|
||||
</VerticalStackLayout>
|
||||
</Border>
|
||||
</ViewCell>
|
@ -0,0 +1,23 @@
|
||||
namespace IHM.Composant;
|
||||
|
||||
public partial class BanqueDispo : ViewCell
|
||||
{
|
||||
public BanqueDispo()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
public static readonly BindableProperty ImageBanqueProperty =
|
||||
BindableProperty.Create("ImageBanque", typeof(string), typeof(BanqueDispo), "");
|
||||
|
||||
public string ImageBanque
|
||||
{
|
||||
get { return (string)GetValue(ImageBanqueProperty); }
|
||||
set { SetValue(ImageBanqueProperty, value); }
|
||||
}
|
||||
|
||||
private void Banque_Clicked(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<ViewCell xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||
x:Class="IHM.Composant.BanqueVC"
|
||||
x:Name="root">
|
||||
|
||||
<FlexLayout Direction="Row" AlignItems="Center" JustifyContent="SpaceAround">
|
||||
|
||||
<Label Text="{Binding NomBanque}" FontAttributes="Bold" FontSize="Body"/>
|
||||
<Label Text="{Binding DateLastReload}" FontAttributes="Italic" FontSize="Body"/>
|
||||
<ImageButton Source="reload_banks.png"
|
||||
Padding="10" Margin="10"
|
||||
CornerRadius="10" HeightRequest="65"
|
||||
BackgroundColor="{StaticResource Primary}"
|
||||
Clicked="MaBanque_Clicked"/>
|
||||
|
||||
</FlexLayout>
|
||||
</ViewCell>
|
@ -0,0 +1,32 @@
|
||||
namespace IHM.Composant;
|
||||
|
||||
public partial class BanqueVC : ViewCell
|
||||
{
|
||||
public BanqueVC()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
public static readonly BindableProperty NomBanqueProperty =
|
||||
BindableProperty.Create("NomBanque", typeof(string), typeof(BanqueVC), "");
|
||||
|
||||
public string NomBanque
|
||||
{
|
||||
get { return (string)GetValue(NomBanqueProperty); }
|
||||
set { SetValue(NomBanqueProperty, value); }
|
||||
}
|
||||
|
||||
public static readonly BindableProperty DateLastReloadProperty =
|
||||
BindableProperty.Create("DateLastReload", typeof(string), typeof(BanqueVC), "");
|
||||
|
||||
public string DateLastReload
|
||||
{
|
||||
get { return (string)GetValue(DateLastReloadProperty); }
|
||||
set { SetValue(DateLastReloadProperty, value); }
|
||||
}
|
||||
|
||||
private void MaBanque_Clicked(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
@ -0,0 +1,57 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<ViewCell xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||
x:Class="IHM.Composant.VC_Operation_Dashboard">
|
||||
<StackLayout Orientation="Vertical">
|
||||
<StackLayout Orientation="Horizontal">
|
||||
<Label>Nom de l'opération</Label>
|
||||
<Label>Date de l'opération</Label>
|
||||
<Label>Type d'opération</Label>
|
||||
</StackLayout>
|
||||
<StackLayout Orientation="Horizontal">
|
||||
<Label>Nom de l'opération</Label>
|
||||
<Label>Date de l'opération</Label>
|
||||
<Label>Type d'opération</Label>
|
||||
</StackLayout>
|
||||
<StackLayout Orientation="Horizontal">
|
||||
<Label>Nom de l'opération</Label>
|
||||
<Label>Date de l'opération</Label>
|
||||
<Label>Type d'opération</Label>
|
||||
</StackLayout>
|
||||
<StackLayout Orientation="Horizontal">
|
||||
<Label>Nom de l'opération</Label>
|
||||
<Label>Date de l'opération</Label>
|
||||
<Label>Type d'opération</Label>
|
||||
</StackLayout>
|
||||
<StackLayout Orientation="Horizontal">
|
||||
<Label>Nom de l'opération</Label>
|
||||
<Label>Date de l'opération</Label>
|
||||
<Label>Type d'opération</Label>
|
||||
</StackLayout>
|
||||
<StackLayout Orientation="Horizontal">
|
||||
<Label>Nom de l'opération</Label>
|
||||
<Label>Date de l'opération</Label>
|
||||
<Label>Type d'opération</Label>
|
||||
</StackLayout>
|
||||
<StackLayout Orientation="Horizontal">
|
||||
<Label>Nom de l'opération</Label>
|
||||
<Label>Date de l'opération</Label>
|
||||
<Label>Type d'opération</Label>
|
||||
</StackLayout>
|
||||
<StackLayout Orientation="Horizontal">
|
||||
<Label>Nom de l'opération</Label>
|
||||
<Label>Date de l'opération</Label>
|
||||
<Label>Type d'opération</Label>
|
||||
</StackLayout>
|
||||
<StackLayout Orientation="Horizontal">
|
||||
<Label>Nom de l'opération</Label>
|
||||
<Label>Date de l'opération</Label>
|
||||
<Label>Type d'opération</Label>
|
||||
</StackLayout>
|
||||
<StackLayout Orientation="Horizontal">
|
||||
<Label>Nom de l'opération</Label>
|
||||
<Label>Date de l'opération</Label>
|
||||
<Label>Type d'opération</Label>
|
||||
</StackLayout>
|
||||
</StackLayout>
|
||||
</ViewCell>
|
@ -0,0 +1,9 @@
|
||||
namespace IHM.Composant;
|
||||
|
||||
public partial class VC_Operation_Dashboard : ViewCell
|
||||
{
|
||||
public VC_Operation_Dashboard()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
@ -0,0 +1,82 @@
|
||||
<?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:composant="clr-namespace:IHM.Composant"
|
||||
x:Class="IHM.Mobile.AjoutBanques"
|
||||
Title="AjoutBanques">
|
||||
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="0.10*"/>
|
||||
<RowDefinition Height="0.05*"/>
|
||||
<RowDefinition Height="0.15*"/>
|
||||
<RowDefinition/>
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="1.95*"/>
|
||||
<ColumnDefinition/>
|
||||
<ColumnDefinition/>
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<HorizontalStackLayout Grid.Row="0" Grid.Column="0" VerticalOptions="Center">
|
||||
<Image Source="Resources/Images/logo_sans_fond.png" HeightRequest="50" Margin="20"/>
|
||||
<Label Text="Cons'Eco" FontSize="20" VerticalOptions="Center" FontAttributes="Bold"/>
|
||||
<Button x:Name="boutonRetour" Text="retour" HeightRequest="50" Clicked="returnbutton" IsVisible="False" HorizontalOptions="End"/>
|
||||
</HorizontalStackLayout>
|
||||
<Label Grid.Row="1" Grid.ColumnSpan="3" Text="Liste des banques disponible : " FontAttributes="Bold" FontSize="Body" Padding="20,10,0,0"/>
|
||||
|
||||
<Border Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="3"
|
||||
BackgroundColor="{StaticResource Tertiary}"
|
||||
StrokeShape="RoundRectangle 20" Margin="10">
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="1.75*"/>
|
||||
<ColumnDefinition/>
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<Label Grid.Column="0" Text="Importer depuis un fichier" TextColor="Black"
|
||||
FontAttributes="Bold" FontSize="Body"
|
||||
HorizontalOptions="Center"
|
||||
VerticalOptions="Center"/>
|
||||
<ImageButton Grid.Column="2" Source="import_from_file.png"
|
||||
Padding="10" Margin="5"
|
||||
CornerRadius="10" HeightRequest="65"
|
||||
BackgroundColor="{StaticResource Primary}"
|
||||
Clicked="ImportOFX_Clicked"/>
|
||||
|
||||
</Grid>
|
||||
</Border>
|
||||
|
||||
|
||||
|
||||
<CollectionView Grid.Row="3" Grid.Column="0" Grid.ColumnSpan="3" ItemsSource="{Binding BanquesDisponibleInApp}">
|
||||
<CollectionView.ItemTemplate>
|
||||
<DataTemplate>
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="1.75*"/>
|
||||
<ColumnDefinition/>
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<Label Grid.Column="0" Text="{Binding Nom}"
|
||||
FontAttributes="Bold" FontSize="Body"
|
||||
HorizontalOptions="Center"
|
||||
VerticalOptions="Center"/>
|
||||
<ImageButton Grid.Column="2" Source="add_new_banks.png"
|
||||
Padding="10" Margin="5"
|
||||
CornerRadius="10" HeightRequest="65"
|
||||
BackgroundColor="{StaticResource Primary}"/>
|
||||
|
||||
</Grid>
|
||||
|
||||
|
||||
|
||||
</DataTemplate>
|
||||
</CollectionView.ItemTemplate>
|
||||
</CollectionView>
|
||||
|
||||
|
||||
|
||||
</Grid>
|
||||
</ContentPage>
|
@ -0,0 +1,58 @@
|
||||
using Model;
|
||||
using System.Diagnostics;
|
||||
using System.Numerics;
|
||||
|
||||
namespace IHM.Mobile;
|
||||
|
||||
public partial class AjoutBanques : ContentPage
|
||||
{
|
||||
public Manager Mgr => (App.Current as App).Manager;
|
||||
public AjoutBanques()
|
||||
{
|
||||
InitializeComponent();
|
||||
BindingContext = Mgr;
|
||||
Mgr.importBanques();
|
||||
if (OperatingSystem.IsIOS())
|
||||
{
|
||||
boutonRetour.IsVisible = true;
|
||||
}
|
||||
}
|
||||
|
||||
private async void ImportOFX_Clicked(object sender, EventArgs e)
|
||||
{
|
||||
PickOptions options = new PickOptions();
|
||||
options.PickerTitle = "Choisir un fichier OFX";
|
||||
|
||||
try{
|
||||
var result = await FilePicker.Default.PickAsync(options);
|
||||
if (result != null)
|
||||
{
|
||||
if (result.FileName.EndsWith("ofx", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
IList<Compte> lesComptes = Mgr.getCompteFromOFX(result.FullPath);
|
||||
Debug.WriteLine(lesComptes.Count);
|
||||
foreach(Compte compte in lesComptes)
|
||||
{
|
||||
Mgr.User.LesBanques.First().AjouterCompte(compte);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
throw new FileLoadException("Imposible de charger le fichier");
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
catch(Exception ex)
|
||||
{
|
||||
Debug.WriteLine(ex.Message);
|
||||
}
|
||||
}
|
||||
private async void returnbutton(object sender, EventArgs e)
|
||||
{
|
||||
await Navigation.PopModalAsync();
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,16 @@
|
||||
<?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.Mobile.ErrorPage"
|
||||
Title="Error">
|
||||
<FlexLayout Direction="Column" JustifyContent="Center" AlignItems="Center">
|
||||
|
||||
<Image Source="{AppThemeBinding Light=logo_sans_fond_black.png, Dark=logo_sans_fond.png}"
|
||||
HorizontalOptions="Center" HeightRequest="200"/>
|
||||
|
||||
<ActivityIndicator IsRunning="true" Margin="0,120,0,0" />
|
||||
|
||||
<Label Text="Tentative de connexion" Margin="0,20,0,0" FontSize="Body" FontAttributes="Bold"/>
|
||||
|
||||
</FlexLayout>
|
||||
</ContentPage>
|
@ -0,0 +1,46 @@
|
||||
using Model;
|
||||
using System.Diagnostics;
|
||||
|
||||
namespace IHM.Mobile;
|
||||
|
||||
public partial class ErrorPage : ContentPage
|
||||
{
|
||||
public Manager Mgr => (App.Current as App).Manager;
|
||||
|
||||
public const int TIME_TEST_DB = 15000;
|
||||
|
||||
public ErrorPage()
|
||||
{
|
||||
InitializeComponent();
|
||||
startTestConnexion();
|
||||
}
|
||||
|
||||
protected override bool OnBackButtonPressed()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public void conIsActive()
|
||||
{
|
||||
while (!Mgr.testConnexionAsDatabase())
|
||||
{
|
||||
Thread.Sleep(TIME_TEST_DB);
|
||||
}
|
||||
|
||||
ConnexionValide();
|
||||
return;
|
||||
}
|
||||
|
||||
public void startTestConnexion()
|
||||
{
|
||||
Task testConnexion = new Task(() => conIsActive());
|
||||
testConnexion.Start();
|
||||
}
|
||||
|
||||
private async void ConnexionValide()
|
||||
{
|
||||
await Navigation.PopModalAsync();
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,64 @@
|
||||
<?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:composant="clr-namespace:IHM.Composant"
|
||||
x:Class="IHM.Mobile.GestionBanques"
|
||||
Title="GestionBanques">
|
||||
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="0.10*"/>
|
||||
<RowDefinition Height="0.05*"/>
|
||||
<RowDefinition/>
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="1.95*"/>
|
||||
<ColumnDefinition/>
|
||||
<ColumnDefinition/>
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<HorizontalStackLayout Grid.Row="0" Grid.Column="0" VerticalOptions="Center">
|
||||
<Image Source="Resources/Images/logo_sans_fond.png" HeightRequest="50" Margin="20"/>
|
||||
<Label Text="Cons'Eco" FontSize="20" VerticalOptions="Center" FontAttributes="Bold"/>
|
||||
<Button x:Name="boutonRetour" Text="retour" HeightRequest="50" Clicked="returnbutton" IsVisible="False" HorizontalOptions="End"/>
|
||||
</HorizontalStackLayout>
|
||||
|
||||
<ImageButton Grid.Row="0" Grid.Column="2" Source="add_banks.png"
|
||||
HorizontalOptions="End" Padding="10" Margin="10"
|
||||
CornerRadius="10" HeightRequest="65"
|
||||
BackgroundColor="{StaticResource Primary}"
|
||||
Clicked="AddBanque_Clicked"/>
|
||||
|
||||
<Label Grid.Row="1" Grid.ColumnSpan="3" Text="Liste de vos banques : " FontAttributes="Bold" FontSize="Body" Padding="20,10,0,0"/>
|
||||
|
||||
<CollectionView Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="3" ItemsSource="{Binding User.LesBanques}">
|
||||
<CollectionView.ItemTemplate>
|
||||
<DataTemplate>
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="1.75*"/>
|
||||
<ColumnDefinition/>
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<Label Grid.Column="0" Text="{Binding Nom}"
|
||||
FontAttributes="Bold" FontSize="Body"
|
||||
HorizontalOptions="Center"
|
||||
VerticalOptions="Center"/>
|
||||
<ImageButton Grid.Column="2" Source="reload_banks.png"
|
||||
Padding="10" Margin="5"
|
||||
CornerRadius="10" HeightRequest="65"
|
||||
BackgroundColor="{StaticResource Primary}"/>
|
||||
|
||||
</Grid>
|
||||
|
||||
|
||||
|
||||
</DataTemplate>
|
||||
</CollectionView.ItemTemplate>
|
||||
</CollectionView>
|
||||
|
||||
|
||||
|
||||
</Grid>
|
||||
</ContentPage>
|
@ -0,0 +1,35 @@
|
||||
using Model;
|
||||
using System.Collections.ObjectModel;
|
||||
|
||||
namespace IHM.Mobile;
|
||||
|
||||
public partial class GestionBanques : ContentPage
|
||||
{
|
||||
public Manager Mgr => (App.Current as App).Manager;
|
||||
|
||||
public GestionBanques()
|
||||
{
|
||||
InitializeComponent();
|
||||
BindingContext= Mgr;
|
||||
Mgr.LoadBanques();
|
||||
if (OperatingSystem.IsIOS())
|
||||
{
|
||||
boutonRetour.IsVisible = true;
|
||||
}
|
||||
}
|
||||
|
||||
public async void loadPage(Page p)
|
||||
{
|
||||
await Navigation.PushModalAsync(p);
|
||||
}
|
||||
|
||||
private void AddBanque_Clicked(object sender, EventArgs e)
|
||||
{
|
||||
loadPage(new AjoutBanques());
|
||||
}
|
||||
private async void returnbutton(object sender, EventArgs e)
|
||||
{
|
||||
await Navigation.PopModalAsync();
|
||||
}
|
||||
|
||||
}
|
@ -1,9 +1,14 @@
|
||||
using System.Diagnostics;
|
||||
using Model;
|
||||
|
||||
namespace IHM.Mobile;
|
||||
|
||||
public partial class Operations : ContentPage
|
||||
{
|
||||
public Manager Mgr => (App.Current as App).Manager;
|
||||
public Operations()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
BindingContext = Mgr;
|
||||
}
|
||||
}
|
@ -1,11 +1,135 @@
|
||||
<?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.Mobile.Planification">
|
||||
<VerticalStackLayout>
|
||||
<Label
|
||||
Text="Planification"
|
||||
xmlns:local="clr-namespace:IHM.Composant"
|
||||
x:Class="IHM.Mobile.Planification"
|
||||
BackgroundColor="#A00EE8">
|
||||
<ScrollView VerticalOptions="FillAndExpand">
|
||||
<VerticalStackLayout>
|
||||
<StackLayout Orientation="Horizontal">
|
||||
<Label
|
||||
Text="Bienvenue"
|
||||
VerticalOptions="Center"
|
||||
HorizontalOptions="Center" />
|
||||
HorizontalOptions="Start"
|
||||
Margin="10,10,10,20"
|
||||
FontSize="25"
|
||||
/>
|
||||
<Label
|
||||
FontAttributes="Bold"
|
||||
Margin="0,10,0,0"
|
||||
Text="{Binding User.Prenom}"
|
||||
FontSize="25"
|
||||
/>
|
||||
</StackLayout>
|
||||
<Button
|
||||
BackgroundColor="Red"
|
||||
x:Name="Bouton"
|
||||
WidthRequest="50"
|
||||
HeightRequest="50"
|
||||
HorizontalOptions="End"
|
||||
Margin="0,0,40,0"
|
||||
Clicked="OnClickedGestionBanque"
|
||||
/>
|
||||
<Button
|
||||
IsVisible="False"
|
||||
IsEnabled="False"
|
||||
WidthRequest="175"
|
||||
HeightRequest="50"
|
||||
Margin="0,-50,0,0"
|
||||
x:Name="ImgBanqueActuelle"
|
||||
BackgroundColor="AliceBlue"
|
||||
Text="{Binding selectedBanque}"
|
||||
/>
|
||||
<Button
|
||||
IsVisible="false"
|
||||
BackgroundColor="Black"
|
||||
x:Name="BoutonRetour"
|
||||
WidthRequest="50"
|
||||
HeightRequest="50"
|
||||
HorizontalOptions="End"
|
||||
Margin="0,-50,40,0"
|
||||
Clicked="OnClickedRetour"
|
||||
/>
|
||||
<StackLayout IsVisible="false" x:Name="stackpannel">
|
||||
<CollectionView x:Name="listeBanque" ItemsSource="{Binding User.LesBanques}" ItemsUpdatingScrollMode="KeepScrollOffset" Margin="22,0,22,0" ItemsLayout="HorizontalList">
|
||||
<CollectionView.ItemTemplate>
|
||||
<DataTemplate>
|
||||
<StackLayout Margin="0,35,0,0">
|
||||
<Button Clicked="OnClickedBanque" Text="{Binding Nom}"/>
|
||||
</StackLayout>
|
||||
</DataTemplate>
|
||||
</CollectionView.ItemTemplate>
|
||||
</CollectionView>
|
||||
</StackLayout>
|
||||
<StackLayout Margin="0,20,0,0" Orientation="Horizontal">
|
||||
<Label Margin="20,0,0,0" FontSize="25">Solde total :</Label>
|
||||
<Label FontSize="25" Margin="8,0,0,0" x:Name="soldetotal">0</Label>
|
||||
</StackLayout>
|
||||
<Border Stroke="Black" StrokeThickness="5" Margin="0,70,0,0">
|
||||
<StackLayout BackgroundColor="Cyan" Padding="0,0,0,20">
|
||||
<Label HorizontalTextAlignment="Center" FontSize="20">Listes des dernières opérations</Label>
|
||||
<StackLayout Orientation="Vertical">
|
||||
<StackLayout Orientation="Horizontal">
|
||||
<Label>Nom de l'opération</Label>
|
||||
<Label>Date de l'opération</Label>
|
||||
<Label>Type d'opération</Label>
|
||||
</StackLayout>
|
||||
<StackLayout Orientation="Horizontal">
|
||||
<Label>Nom de l'opération</Label>
|
||||
<Label>Date de l'opération</Label>
|
||||
<Label>Type d'opération</Label>
|
||||
</StackLayout>
|
||||
<StackLayout Orientation="Horizontal">
|
||||
<Label>Nom de l'opération</Label>
|
||||
<Label>Date de l'opération</Label>
|
||||
<Label>Type d'opération</Label>
|
||||
</StackLayout>
|
||||
<StackLayout Orientation="Horizontal">
|
||||
<Label>Nom de l'opération</Label>
|
||||
<Label>Date de l'opération</Label>
|
||||
<Label>Type d'opération</Label>
|
||||
</StackLayout>
|
||||
<StackLayout Orientation="Horizontal">
|
||||
<Label>Nom de l'opération</Label>
|
||||
<Label>Date de l'opération</Label>
|
||||
<Label>Type d'opération</Label>
|
||||
</StackLayout>
|
||||
<StackLayout Orientation="Horizontal">
|
||||
<Label>Nom de l'opération</Label>
|
||||
<Label>Date de l'opération</Label>
|
||||
<Label>Type d'opération</Label>
|
||||
</StackLayout>
|
||||
<StackLayout Orientation="Horizontal">
|
||||
<Label>Nom de l'opération</Label>
|
||||
<Label>Date de l'opération</Label>
|
||||
<Label>Type d'opération</Label>
|
||||
</StackLayout>
|
||||
<StackLayout Orientation="Horizontal">
|
||||
<Label>Nom de l'opération</Label>
|
||||
<Label>Date de l'opération</Label>
|
||||
<Label>Type d'opération</Label>
|
||||
</StackLayout>
|
||||
<StackLayout Orientation="Horizontal">
|
||||
<Label>Nom de l'opération</Label>
|
||||
<Label>Date de l'opération</Label>
|
||||
<Label>Type d'opération</Label>
|
||||
</StackLayout>
|
||||
<StackLayout Orientation="Horizontal">
|
||||
<Label>Nom de l'opération</Label>
|
||||
<Label>Date de l'opération</Label>
|
||||
<Label>Type d'opération</Label>
|
||||
</StackLayout>
|
||||
</StackLayout>
|
||||
</StackLayout>
|
||||
</Border>
|
||||
<Border Stroke="Black" StrokeThickness="5" Margin="0,70,0,30">
|
||||
<StackLayout Margin="0,10,0,0">
|
||||
<Label HorizontalTextAlignment="Center" FontSize="20">Pour vous</Label>
|
||||
<StackLayout BackgroundColor="RosyBrown" Margin="0,0,0,20" HeightRequest="200" WidthRequest="310">
|
||||
<Label HorizontalOptions="Center" FontSize="20">Aide à la gestion personnalisée</Label>
|
||||
</StackLayout>
|
||||
</StackLayout>
|
||||
</Border>
|
||||
</VerticalStackLayout>
|
||||
</ScrollView>
|
||||
</ContentPage>
|
@ -1,9 +1,51 @@
|
||||
using Model;
|
||||
|
||||
namespace IHM.Mobile;
|
||||
|
||||
public partial class Planification : ContentPage
|
||||
{
|
||||
public Planification()
|
||||
public Manager Mgr => (App.Current as App).Manager;
|
||||
public Planification()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
BindingContext = Mgr;
|
||||
//Routing.RegisterRoute(nameof(DashBoard), typeof(DashBoard));
|
||||
|
||||
}
|
||||
|
||||
void OnClickedBanque(object sender, EventArgs args)
|
||||
{
|
||||
Button btn = (Button)sender;
|
||||
ImgBanqueActuelle.Text = btn.Text;
|
||||
}
|
||||
|
||||
|
||||
async void OnClickedGestionBanque(object sender, EventArgs args)
|
||||
{
|
||||
Bouton.BackgroundColor = Color.FromRgb(192, 192, 192);
|
||||
await Bouton.TranslateTo(-130, 35, 50);
|
||||
await Bouton.ScaleXTo(7.5, 50);
|
||||
await Bouton.ScaleYTo(3, 50);
|
||||
stackpannel.IsVisible = true;
|
||||
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);
|
||||
ImgBanqueActuelle.IsVisible = false;
|
||||
stackpannel.IsVisible = false;
|
||||
await Bouton.TranslateTo(0, 0, 50);
|
||||
BoutonRetour.IsVisible = false;
|
||||
}
|
||||
|
||||
public async void loadInscription()
|
||||
{
|
||||
await Navigation.PushModalAsync(new MainPage());
|
||||
BindingContext = Mgr;
|
||||
}
|
||||
}
|
After Width: | Height: | Size: 166 B |
After Width: | Height: | Size: 455 B |
After Width: | Height: | Size: 629 B |
After Width: | Height: | Size: 551 B |
After Width: | Height: | Size: 748 B |
Loading…
Reference in new issue