root / GES_PAC / View / CreateMeasureView.xaml @ fff89fc5
Historique | Voir | Annoter | Télécharger (4,663 ko)
1 | fff89fc5 | 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.CreateMeasureView" |
||
7 | x:DataType="vm:CreateMeasureViewModel"> |
||
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="{Binding Titre}" |
||
17 | FontSize="20" |
||
18 | FontAttributes="Bold" |
||
19 | HorizontalOptions="Center" /> |
||
20 | <VerticalStackLayout Spacing="15" WidthRequest="300"> |
||
21 | |||
22 | <!-- CH4 -->
|
||
23 | <VerticalStackLayout>
|
||
24 | <Label Text="CH4 (ppm)" FontSize="14" TextColor="Gray" FontAttributes="Bold"/> |
||
25 | <Entry Text="{Binding ConcCH4, Mode=TwoWay, TargetNullValue=''}" |
||
26 | FontSize="16" |
||
27 | TextColor="Black" |
||
28 | Placeholder="0,0" |
||
29 | Keyboard="Numeric"/> |
||
30 | <Label Text="Entrez une valeur" |
||
31 | FontSize="12" |
||
32 | TextColor="Red" |
||
33 | IsVisible="{Binding ConcCH4Error}"/> |
||
34 | </VerticalStackLayout>
|
||
35 | |||
36 | <!-- O2 -->
|
||
37 | <VerticalStackLayout>
|
||
38 | <Label Text="O2 (% vol.)" FontSize="14" TextColor="Gray" FontAttributes="Bold"/> |
||
39 | <Entry Text="{Binding ConcO2 , Mode=TwoWay, TargetNullValue=''}" |
||
40 | FontSize="16" |
||
41 | TextColor="Black" |
||
42 | Placeholder="0,0" |
||
43 | Keyboard="Numeric"/> |
||
44 | <Label Text="Entrez une valeur" |
||
45 | FontSize="12" |
||
46 | TextColor="Red" |
||
47 | IsVisible="{Binding ConcO2Error}"/> |
||
48 | </VerticalStackLayout>
|
||
49 | |||
50 | <!-- CO2 -->
|
||
51 | <VerticalStackLayout>
|
||
52 | <Label Text="CO2 (% vol.)" FontSize="14" TextColor="Gray" FontAttributes="Bold"/> |
||
53 | <Entry Text="{Binding ConcCO2, Mode=TwoWay, TargetNullValue=''}" |
||
54 | FontSize="16" |
||
55 | TextColor="Black" |
||
56 | Placeholder="0,0" |
||
57 | Keyboard="Numeric"/> |
||
58 | <Label Text="Entrez une valeur" |
||
59 | FontSize="12" |
||
60 | TextColor="Red" |
||
61 | IsVisible="{Binding ConcCO2Error}"/> |
||
62 | </VerticalStackLayout>
|
||
63 | </VerticalStackLayout>
|
||
64 | </VerticalStackLayout>
|
||
65 | </ScrollView>
|
||
66 | <StackLayout
|
||
67 | Margin="10" |
||
68 | HorizontalOptions="CenterAndExpand" |
||
69 | Orientation="Horizontal" |
||
70 | VerticalOptions="FillAndExpand"> |
||
71 | |||
72 | <Button
|
||
73 | Text="Enregistrer les mesures" |
||
74 | Command="{Binding CreateMeasureCommand}" |
||
75 | Style="{StaticResource btnNormal}" |
||
76 | IsEnabled="{Binding IsFormValid}" |
||
77 | VerticalOptions="End"/> |
||
78 | </StackLayout>
|
||
79 | </StackLayout>
|
||
80 | <Grid Grid.RowSpan="1" IsVisible="{Binding IsBusy}"> |
||
81 | <Border StrokeThickness="0" |
||
82 | Background="Black" |
||
83 | Opacity="0.5" |
||
84 | Padding="20" |
||
85 | WidthRequest="160" |
||
86 | HeightRequest="160" |
||
87 | HorizontalOptions="Center" |
||
88 | VerticalOptions="Center" |
||
89 | StrokeShape="RoundRectangle 20"> |
||
90 | |||
91 | <VerticalStackLayout HorizontalOptions="Center" VerticalOptions="Center"> |
||
92 | <ActivityIndicator IsRunning="True" Color="White" /> |
||
93 | <Label Text="Chargement..." |
||
94 | FontSize="14" |
||
95 | TextColor="white" |
||
96 | HorizontalOptions="Center"/> |
||
97 | </VerticalStackLayout>
|
||
98 | </Border>
|
||
99 | </Grid>
|
||
100 | </Grid>
|
||
101 | |||
102 | </ContentPage> |