root / GES_PAC / View / ExportDataView.xaml @ 3fef487c
Historique | Voir | Annoter | Télécharger (2,948 ko)
1 | 957bebf1 | lbihannic | <?xml version="1.0" encoding="utf-8" ?>
|
---|---|---|---|
2 | <ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui" |
||
3 | xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" |
||
4 | xmlns:vm="clr-namespace:GES_PAC.ViewModel" |
||
5 | xmlns:tools="clr-namespace:GES_PAC.View.Tools" |
||
6 | x:Class="GES_PAC.View.ExportDataView" |
||
7 | x:DataType="vm:ExportDataViewModel"> |
||
8 | |||
9 | <Grid>
|
||
10 | <StackLayout BackgroundColor="White" Spacing="50"> |
||
11 | |||
12 | <tools:ConnectionIndicatorView /> |
||
13 | <ScrollView>
|
||
14 | <StackLayout Spacing="100"> |
||
15 | |||
16 | 3fef487c | lbihannic | <Grid ColumnDefinitions="*,Auto,*" Padding="10"> |
17 | 957bebf1 | lbihannic | |
18 | 3fef487c | lbihannic | <Label Text="Exporter" |
19 | FontSize="22" |
||
20 | Grid.Column="1" |
||
21 | FontAttributes="Bold" |
||
22 | HorizontalOptions="Center" |
||
23 | VerticalOptions="Center"/> |
||
24 | |||
25 | <Button Text="Vider DB" |
||
26 | Command="{Binding ClearDataCommand}" |
||
27 | Grid.Column="2" |
||
28 | HorizontalOptions="End" |
||
29 | VerticalOptions="Center" /> |
||
30 | |||
31 | </Grid>
|
||
32 | |||
33 | <Label Text="{Binding DataFoundText}" |
||
34 | 957bebf1 | lbihannic | FontSize="18" |
35 | HorizontalOptions="Center"/> |
||
36 | |||
37 | </StackLayout>
|
||
38 | </ScrollView>
|
||
39 | <StackLayout HorizontalOptions="Center" VerticalOptions="EndAndExpand" Spacing="75" Margin="0, 0, 0, 50"> |
||
40 | |||
41 | <Button
|
||
42 | Text="Exporter en JSON" |
||
43 | Command="{Binding ExportJSONCommand}" |
||
44 | Style="{StaticResource btnNormal}" |
||
45 | VerticalOptions="End" |
||
46 | HorizontalOptions="Center" |
||
47 | IsVisible="{Binding HasData}"/> |
||
48 | |||
49 | <Button
|
||
50 | Text="Exporter en CSV" |
||
51 | Command="{Binding ExportCSVCommand}" |
||
52 | Style="{StaticResource btnNormal}" |
||
53 | VerticalOptions="End" |
||
54 | HorizontalOptions="Center" |
||
55 | IsVisible="{Binding HasData}"/> |
||
56 | |||
57 | </StackLayout>
|
||
58 | |||
59 | </StackLayout>
|
||
60 | <Grid Grid.RowSpan="1" IsVisible="{Binding IsBusy}"> |
||
61 | <Border StrokeThickness="0" |
||
62 | Background="Black" |
||
63 | Opacity="0.5" |
||
64 | Padding="20" |
||
65 | WidthRequest="160" |
||
66 | HeightRequest="160" |
||
67 | HorizontalOptions="Center" |
||
68 | VerticalOptions="Center" |
||
69 | StrokeShape="RoundRectangle 20"> |
||
70 | |||
71 | <VerticalStackLayout HorizontalOptions="Center" VerticalOptions="Center"> |
||
72 | <ActivityIndicator IsRunning="True" Color="White" /> |
||
73 | <Label Text="Chargement..." |
||
74 | FontSize="14" |
||
75 | TextColor="white" |
||
76 | HorizontalOptions="Center"/> |
||
77 | </VerticalStackLayout>
|
||
78 | </Border>
|
||
79 | </Grid>
|
||
80 | |||
81 | </Grid>
|
||
82 | </ContentPage> |