root / GES_PAC / View / CreateCalibrationView.xaml @ 12ddf7ef
Historique | Voir | Annoter | Télécharger (5,634 ko)
1 | 5d673ce0 | Lucas Bihannic | <?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 | 12ddf7ef | lbihannic | xmlns:controls="clr-namespace:GES_PAC.Controls" |
7 | 5d673ce0 | Lucas Bihannic | x:Class="GES_PAC.View.CreateCalibrationView" |
8 | x:DataType="vm:CreateCalibrationViewModel"> |
||
9 | |||
10 | <Grid>
|
||
11 | <StackLayout BackgroundColor="White" Spacing="50"> |
||
12 | <tools:ConnectionIndicatorView /> |
||
13 | <ScrollView>
|
||
14 | |||
15 | <VerticalStackLayout Grid.Row="1" Spacing="30"> |
||
16 | |||
17 | <Label Text="Mesure de calibration" |
||
18 | FontSize="20" |
||
19 | FontAttributes="Bold" |
||
20 | HorizontalOptions="Center" /> |
||
21 | <VerticalStackLayout Spacing="15" WidthRequest="300"> |
||
22 | |||
23 | <!-- Type de calibration -->
|
||
24 | <VerticalStackLayout>
|
||
25 | |||
26 | <Label Text="Type de calibration" FontSize="14" TextColor="Gray" FontAttributes="Bold"/> |
||
27 | |||
28 | <Picker Title="Sélectionnez un type de calibration" |
||
29 | ItemsSource="{Binding TypeCalibrations}" |
||
30 | ItemDisplayBinding="{Binding Name}" |
||
31 | SelectedItem="{Binding SelectedType}" /> |
||
32 | |||
33 | |||
34 | <Label Text="Sélectionnez un type de calibration" |
||
35 | FontSize="12" |
||
36 | TextColor="Red" |
||
37 | IsVisible="{Binding TypeError}"/> |
||
38 | </VerticalStackLayout>
|
||
39 | |||
40 | 09d4a0de | lbihannic | <!-- CH4 -->
|
41 | <VerticalStackLayout>
|
||
42 | <Label Text="CH4 (ppm)" FontSize="14" TextColor="Gray" FontAttributes="Bold"/> |
||
43 | 12ddf7ef | lbihannic | <controls:DoubleEntry Text="{Binding ConcCH4, Mode=OneWayToSource, TargetNullValue=''}" /> |
44 | 09d4a0de | lbihannic | <Label Text="Entrez une valeur" |
45 | FontSize="12" |
||
46 | TextColor="Red" |
||
47 | IsVisible="{Binding ConcCH4Error}"/> |
||
48 | </VerticalStackLayout>
|
||
49 | |||
50 | 5d673ce0 | Lucas Bihannic | <!-- O2 -->
|
51 | <VerticalStackLayout>
|
||
52 | <Label Text="O2 (% vol.)" FontSize="14" TextColor="Gray" FontAttributes="Bold"/> |
||
53 | 12ddf7ef | lbihannic | <controls:DoubleEntry Text="{Binding ConcO2, Mode=OneWayToSource, TargetNullValue=''}" /> |
54 | 5d673ce0 | Lucas Bihannic | <Label Text="Entrez une valeur" |
55 | FontSize="12" |
||
56 | TextColor="Red" |
||
57 | IsVisible="{Binding ConcO2Error}"/> |
||
58 | </VerticalStackLayout>
|
||
59 | |||
60 | <!-- CO2 -->
|
||
61 | <VerticalStackLayout>
|
||
62 | <Label Text="CO2 (% vol.)" FontSize="14" TextColor="Gray" FontAttributes="Bold"/> |
||
63 | 12ddf7ef | lbihannic | <controls:DoubleEntry Text="{Binding ConcCO2, Mode=OneWayToSource, TargetNullValue=''}" /> |
64 | 5d673ce0 | Lucas Bihannic | <Label Text="Entrez une valeur" |
65 | FontSize="12" |
||
66 | TextColor="Red" |
||
67 | IsVisible="{Binding ConcCO2Error}"/> |
||
68 | </VerticalStackLayout>
|
||
69 | |||
70 | 09d4a0de | lbihannic | <!-- Ref Bouteille -->
|
71 | <VerticalStackLayout IsVisible="{Binding IsRefBouteilleVisible}"> |
||
72 | <Label Text="Référence bouteille" FontSize="14" TextColor="Gray" FontAttributes="Bold"/> |
||
73 | <Entry Text="{Binding RefBouteille}" |
||
74 | FontSize="16" |
||
75 | TextColor="Black" |
||
76 | Placeholder="0001-0002"/> |
||
77 | <Label Text="Min. 5 caractères" |
||
78 | 5d673ce0 | Lucas Bihannic | FontSize="12" |
79 | TextColor="Red" |
||
80 | 09d4a0de | lbihannic | IsVisible="{Binding RefBouteilleError}"/> |
81 | 5d673ce0 | Lucas Bihannic | </VerticalStackLayout>
|
82 | |||
83 | </VerticalStackLayout>
|
||
84 | </VerticalStackLayout>
|
||
85 | </ScrollView>
|
||
86 | <StackLayout
|
||
87 | Margin="10" |
||
88 | HorizontalOptions="CenterAndExpand" |
||
89 | Orientation="Horizontal" |
||
90 | VerticalOptions="FillAndExpand"> |
||
91 | |||
92 | <Button
|
||
93 | 09d4a0de | lbihannic | Text="Enregistrer les mesures" |
94 | 5d673ce0 | Lucas Bihannic | Command="{Binding CreateCalibrationCommand}" |
95 | Style="{StaticResource btnNormal}" |
||
96 | IsEnabled="{Binding IsFormValid}" |
||
97 | VerticalOptions="End"/> |
||
98 | </StackLayout>
|
||
99 | </StackLayout>
|
||
100 | <Grid Grid.RowSpan="1" IsVisible="{Binding IsBusy}"> |
||
101 | <Border StrokeThickness="0" |
||
102 | Background="Black" |
||
103 | Opacity="0.5" |
||
104 | Padding="20" |
||
105 | WidthRequest="160" |
||
106 | HeightRequest="160" |
||
107 | HorizontalOptions="Center" |
||
108 | VerticalOptions="Center" |
||
109 | StrokeShape="RoundRectangle 20"> |
||
110 | |||
111 | <VerticalStackLayout HorizontalOptions="Center" VerticalOptions="Center"> |
||
112 | <ActivityIndicator IsRunning="True" Color="White" /> |
||
113 | <Label Text="Chargement..." |
||
114 | FontSize="14" |
||
115 | TextColor="white" |
||
116 | HorizontalOptions="Center"/> |
||
117 | </VerticalStackLayout>
|
||
118 | </Border>
|
||
119 | </Grid>
|
||
120 | </Grid>
|
||
121 | |||
122 | </ContentPage> |