remove newPage1 and update transaction ID

pull/69/head
Antoine PEREDERII 2 years ago
parent 4b7337a7f5
commit 02093c44ce

@ -34,11 +34,6 @@
</Grid.GestureRecognizers>
<Label
Text="{Binding Id}"
Grid.Column="0"
x:Name="transactionId"/>
<Label
Text="{Binding Date, StringFormat='{0:ddd dd MMM yyyy}'}"
Grid.Column="1"

@ -93,6 +93,7 @@
<Entry
Text="FR "
x:Name="AccountIbanEntry"
TextChanged="IbanChanged"
Placeholder="Entrez l'IBAN du compte"
Keyboard="Telephone"/>

@ -86,12 +86,17 @@ public partial class CreateCustomerPage : ContentPage
gridAccount.Children.Add(nameLabel);
gridAccount.Children.Add(nameEntry);
StackLayout.Add(gridAccount);
//StackLayout.Add(balance);
// StackLayout.Add(balanceEntry);
//StackLayout.Add(nameLabel);
//StackLayout.Add(nameEntry);
StackLayout.Add(iban);
StackLayout.Add(ibanEntry);
}
public void IbanChanged(object sender, EventArgs e)
{
if(AccountIbanEntry.Text.Length < 3)
{
DisplayAlert("Erreur", "Vous ne pouvez pas effacer le FR !", "OK");
}
var cast = ((Entry)sender);
}
}

@ -26,7 +26,7 @@
Padding="15, 5, 15, 5">
<Editor Placeholder="Decrivez votre demande ici."
x:Name="Message"/>
x:Name="Description"/>
</Frame>

@ -11,9 +11,17 @@ public partial class HelpPage : ContentPage
public async void Send_Clicked(Object sender, EventArgs e)
{
Message message = Account.AskForHelp(Subject.Text, Message.Text);
Mgr.Consultant.MessagesList.Add(message);
await Shell.Current.GoToAsync("//balance");
if(Subject.Text.Length >= 50 || Description.Text.Length >= 200)
{
DisplayAlert("Erreur", "Trop de caracteres", "OK");
}
else
{
Message message = Account.AskForHelp(Subject.Text, Description.Text);
Mgr.Consultant.MessagesList.Add(message);
await Shell.Current.GoToAsync("//balance");
}
}
}

@ -1,34 +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"
x:Class="Banquale.Views.NewPage1">
<VerticalStackLayout>
<Label
Text="Welcome to .NET MAUI!"
VerticalOptions="Center"
HorizontalOptions="Center" />
<Button
Text="Click me"
Clicked="Button_Clicked"/>
<Button
Clicked="ArrowBack" />
<ListView ItemsSource="{Binding ListeClients}" x:Name="ListViewID">
<ListView.ItemTemplate>
<DataTemplate>
<ViewCell>
<Label Text="{Binding Nom}" />
</ViewCell>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
</VerticalStackLayout>
</ContentPage>

@ -1,32 +0,0 @@
using Model;
namespace Banquale.Views;
public partial class NewPage1 : ContentPage
{
public Manager myManager => (App.Current as App).MyManager;
public NewPage1()
{
InitializeComponent();
ListViewID.BindingContext = myManager;
}
int cpt = 0;
void Button_Clicked(System.Object sender, System.EventArgs e)
{
Customer customer1 = new Customer("Mister", "Hello", "HelloThisIsMyPassword");
myManager.AddCustomer(customer1);
cpt++;
Console.WriteLine(cpt);
Console.WriteLine(customer1.Name);
}
public async void ArrowBack(object sender, EventArgs e)
{
await Shell.Current.Navigation.PopAsync();
}
}

@ -13,7 +13,8 @@
<ListView
ItemsSource="{Binding AccountsList}"
SelectionMode="None">
SelectionMode="None"
RowHeight="100">
<ListView.ItemTemplate>
@ -22,7 +23,7 @@
<ViewCell>
<VerticalStackLayout
HeightRequest="84"
HeightRequest="100"
Margin="10">
<Button

@ -36,8 +36,7 @@ public partial class SwitchAccountPage : ContentPage
{
if(Mgr.IsConsultant == true)
{
//await Shell.Current.GoToAsync(;
Debug.WriteLine("Hello");
await Shell.Current.Navigation.PopAsync();
}
else
{

Loading…
Cancel
Save