root / GES_PAC / View / CreateSetView.xaml @ master
Historique | Voir | Annoter | Télécharger (4,961 ko)
1 | 09d4a0de | 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.CreateSetView" |
||
7 | x:DataType="vm:CreateSetViewModel"> |
||
8 | |||
9 | <Grid>
|
||
10 | <StackLayout BackgroundColor="White" Spacing="50"> |
||
11 | <tools:ConnectionIndicatorView /> |
||
12 | <ScrollView>
|
||
13 | |||
14 | <VerticalStackLayout Grid.Row="1" Spacing="30"> |
||
15 | |||
16 | <Label Text="Informations de la série" |
||
17 | FontSize="20" |
||
18 | FontAttributes="Bold" |
||
19 | HorizontalOptions="Center" /> |
||
20 | <VerticalStackLayout Spacing="15" WidthRequest="300"> |
||
21 | |||
22 | <!-- Mise à jeun -->
|
||
23 | <VerticalStackLayout>
|
||
24 | |||
25 | <Label Text="Heure de mise à jeun" FontSize="14" TextColor="Gray" FontAttributes="Bold"/> |
||
26 | |||
27 | <HorizontalStackLayout HorizontalOptions="Center"> |
||
28 | <TimePicker Time="{Binding TimeMAJ, Mode=TwoWay}" |
||
29 | Format="HH:mm" FontSize="20"/> |
||
30 | </HorizontalStackLayout>
|
||
31 | |||
32 | |||
33 | <Label Text="Sélectionnez une heure valide" |
||
34 | FontSize="12" |
||
35 | TextColor="Red" |
||
36 | IsVisible="{Binding DateMAJError}"/> |
||
37 | </VerticalStackLayout>
|
||
38 | |||
39 | <!-- Température -->
|
||
40 | <VerticalStackLayout>
|
||
41 | <Label Text="Température (°C)" FontSize="14" TextColor="Gray" FontAttributes="Bold"/> |
||
42 | <Entry Text="{Binding Temperature}" FontSize="16" TextColor="Black" Placeholder="25" Keyboard="Numeric"/> |
||
43 | <Label Text="Entrez une valeur" |
||
44 | FontSize="12" |
||
45 | TextColor="Red" |
||
46 | IsVisible="{Binding TemperatureError}"/> |
||
47 | </VerticalStackLayout>
|
||
48 | |||
49 | <!-- Humidité -->
|
||
50 | <VerticalStackLayout>
|
||
51 | <Label Text="Humidité (%)" FontSize="14" TextColor="Gray" FontAttributes="Bold"/> |
||
52 | <Entry Text="{Binding Humidite}" FontSize="16" TextColor="Black" Placeholder="50" Keyboard="Numeric"/> |
||
53 | <Label Text="Entrez une valeur" |
||
54 | FontSize="12" |
||
55 | TextColor="Red" |
||
56 | IsVisible="{Binding HumiditeError}"/> |
||
57 | </VerticalStackLayout>
|
||
58 | |||
59 | <!-- Pression -->
|
||
60 | <VerticalStackLayout>
|
||
61 | <Label Text="Pression (hPa)" FontSize="14" TextColor="Gray" FontAttributes="Bold"/> |
||
62 | <Entry Text="{Binding Pression}" FontSize="16" TextColor="Black" Placeholder="1,5" Keyboard="Numeric"/> |
||
63 | <Label Text="Entrez une valeur" |
||
64 | FontSize="12" |
||
65 | TextColor="Red" |
||
66 | IsVisible="{Binding PressionError}"/> |
||
67 | </VerticalStackLayout>
|
||
68 | |||
69 | </VerticalStackLayout>
|
||
70 | </VerticalStackLayout>
|
||
71 | </ScrollView>
|
||
72 | <StackLayout
|
||
73 | Margin="10" |
||
74 | HorizontalOptions="CenterAndExpand" |
||
75 | Orientation="Horizontal" |
||
76 | VerticalOptions="FillAndExpand"> |
||
77 | |||
78 | <Button
|
||
79 | Text="Enregistrer" |
||
80 | Command="{Binding CreateSetCommand}" |
||
81 | Style="{StaticResource btnNormal}" |
||
82 | IsEnabled="{Binding IsFormValid}" |
||
83 | VerticalOptions="End"/> |
||
84 | </StackLayout>
|
||
85 | </StackLayout>
|
||
86 | <Grid Grid.RowSpan="1" IsVisible="{Binding IsBusy}"> |
||
87 | <Border StrokeThickness="0" |
||
88 | Background="Black" |
||
89 | Opacity="0.5" |
||
90 | Padding="20" |
||
91 | WidthRequest="160" |
||
92 | HeightRequest="160" |
||
93 | HorizontalOptions="Center" |
||
94 | VerticalOptions="Center" |
||
95 | StrokeShape="RoundRectangle 20"> |
||
96 | |||
97 | <VerticalStackLayout HorizontalOptions="Center" VerticalOptions="Center"> |
||
98 | <ActivityIndicator IsRunning="True" Color="White" /> |
||
99 | <Label Text="Chargement..." |
||
100 | FontSize="14" |
||
101 | TextColor="white" |
||
102 | HorizontalOptions="Center"/> |
||
103 | </VerticalStackLayout>
|
||
104 | </Border>
|
||
105 | </Grid>
|
||
106 | </Grid>
|
||
107 | |||
108 | </ContentPage> |