Merge branch 'UI_Windows' of https://codefirst.iut.uca.fr/git/ConsEcoTeam/ConsEco into UI_Windows
continuous-integration/drone/push Build is failing Details

UI_Windows
Nicolas MAYE 2 years ago
commit 651014a924

@ -8,7 +8,7 @@
Shell.NavBarIsVisible="False"> Shell.NavBarIsVisible="False">
<ShellContent <ShellContent
ContentTemplate="{DataTemplate local:Dashboard}" ContentTemplate="{DataTemplate local:MainPage}"
Route="Inscription" /> Route="Inscription" />
</Shell> </Shell>

@ -14,7 +14,7 @@
<Label <Label
FontAttributes="Bold" FontAttributes="Bold"
Text="Compte courant --- 'BINDING'" Text="{Binding Banque}"
HorizontalOptions="Center" HorizontalOptions="Center"
VerticalOptions="CenterAndExpand" VerticalOptions="CenterAndExpand"
FontFamily="Comic Sans MS" FontFamily="Comic Sans MS"

@ -5,6 +5,7 @@ public partial class Compte : ContentView
public Compte() public Compte()
{ {
InitializeComponent(); InitializeComponent();
} }
} }

@ -8,6 +8,7 @@ public partial class Dashboard
public Dashboard() public Dashboard()
{ {
InitializeComponent(); InitializeComponent();
} }
private void RetourFormeBase() private void RetourFormeBase()

@ -25,6 +25,40 @@
</HorizontalStackLayout> </HorizontalStackLayout>
<CollectionView Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="2" ItemsSource="{Binding LesOpe}">
<CollectionView.ItemTemplate>
<DataTemplate>
<Grid Padding="10">
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<ImageButton Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2"
Source="{Binding ImageSrc}"
CornerRadius="10"/>
<Label Grid.Row="0" Grid.Column="1"
Text="{Binding NomOpe}"
FontAttributes="Bold" />
<Label Grid.Row="1" Grid.Column="1"
Text="{Binding DetailTypeOpe}"
FontAttributes="Italic"/>
<Label Grid.Row="0" Grid.Column="2"
Text="{Binding DateOpe}"/>
<Label Grid.Row="0" Grid.Column="3" Grid.ColumnSpan="2"
Text="{Binding MontantOpe}"
FontAttributes="Bold"/>
</Grid>
</DataTemplate>
</CollectionView.ItemTemplate>
</CollectionView>
<HorizontalStackLayout HorizontalOptions="Center" VerticalOptions="Fill"> <HorizontalStackLayout HorizontalOptions="Center" VerticalOptions="Fill">
<Border Background="{StaticResource Primary}" <Border Background="{StaticResource Primary}"

@ -41,7 +41,8 @@ public partial class MainPage : ContentPage
private async void ConnexionValide() private async void ConnexionValide()
{ {
await Navigation.PopModalAsync(); Navigation.PushAsync(new Dashboard());
//await Navigation.PopModalAsync();
} }
private async void AffichError(string s, string s1, string s2) private async void AffichError(string s, string s1, string s2)

@ -29,7 +29,6 @@
<Image Source="logo_sans_fond.png" HeightRequest="100" Margin="50,10,0,0" Grid.Column="0" Grid.Row="0"/> <Image Source="logo_sans_fond.png" HeightRequest="100" Margin="50,10,0,0" Grid.Column="0" Grid.Row="0"/>
<Button Text="Mon compte" BackgroundColor="{StaticResource Yellow100Accent}" TextColor="{StaticResource Secondary}" Grid.Column="4" Grid.Row="0" MaximumWidthRequest="200" MaximumHeightRequest="50" ></Button> <Button Text="Mon compte" BackgroundColor="{StaticResource Yellow100Accent}" TextColor="{StaticResource Secondary}" Grid.Column="4" Grid.Row="0" MaximumWidthRequest="200" MaximumHeightRequest="50" ></Button>
<StackLayout BackgroundColor="{StaticResource Secondary}" Grid.Row="1" Grid.Column="0" Grid.RowSpan="6"> <StackLayout BackgroundColor="{StaticResource Secondary}" Grid.Row="1" Grid.Column="0" Grid.RowSpan="6">
<Button Text="ACCUEIL" BackgroundColor="{StaticResource Yellow100Accent}" TextColor="{StaticResource Secondary}" Padding="20" Margin="21" Grid.Column="0" Grid.Row="1" ></Button> <Button Text="ACCUEIL" BackgroundColor="{StaticResource Yellow100Accent}" TextColor="{StaticResource Secondary}" Padding="20" Margin="21" Grid.Column="0" Grid.Row="1" ></Button>
<Button Text="COMPTE" BackgroundColor="{StaticResource Yellow100Accent}" TextColor="{StaticResource Secondary}" Padding="20" Margin="21" Grid.Column="0" Grid.Row="2"></Button> <Button Text="COMPTE" BackgroundColor="{StaticResource Yellow100Accent}" TextColor="{StaticResource Secondary}" Padding="20" Margin="21" Grid.Column="0" Grid.Row="2"></Button>
<Button Text="OPERATION" BackgroundColor="{StaticResource Yellow100Accent}" TextColor="{StaticResource Secondary}" Padding="20" Margin="21" Grid.Column="0" Grid.Row="3"></Button> <Button Text="OPERATION" BackgroundColor="{StaticResource Yellow100Accent}" TextColor="{StaticResource Secondary}" Padding="20" Margin="21" Grid.Column="0" Grid.Row="3"></Button>

Loading…
Cancel
Save