Révision 12ddf7ef GES_PAC/View/CreateMeasureView.xaml
GES_PAC/View/CreateMeasureView.xaml | ||
---|---|---|
3 | 3 |
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" |
4 | 4 |
xmlns:vm="clr-namespace:GES_PAC.ViewModel" |
5 | 5 |
xmlns:tools="clr-namespace:GES_PAC.View.Tools" |
6 |
xmlns:controls="clr-namespace:GES_PAC.Controls" |
|
6 | 7 |
x:Class="GES_PAC.View.CreateMeasureView" |
7 | 8 |
x:DataType="vm:CreateMeasureViewModel"> |
8 | 9 |
|
... | ... | |
10 | 11 |
<StackLayout BackgroundColor="White" Spacing="50"> |
11 | 12 |
<tools:ConnectionIndicatorView /> |
12 | 13 |
<ScrollView> |
13 |
|
|
14 | 14 |
<VerticalStackLayout Grid.Row="1" Spacing="30"> |
15 | 15 |
|
16 |
<Label Text="{Binding Titre}" |
|
17 |
FontSize="20" |
|
18 |
FontAttributes="Bold" |
|
19 |
HorizontalOptions="Center" /> |
|
16 |
<Grid ColumnDefinitions="*,Auto,*" Padding="10" VerticalOptions="Start"> |
|
17 |
<Label Text="{Binding Titre}" |
|
18 |
FontSize="20" |
|
19 |
FontAttributes="Bold" |
|
20 |
VerticalOptions="Center" |
|
21 |
HorizontalOptions="Center" |
|
22 |
Grid.Column="1" /> |
|
23 |
|
|
24 |
<Button |
|
25 |
ImageSource="sad_sheep.png" |
|
26 |
MaximumHeightRequest="50" |
|
27 |
MaximumWidthRequest="75" |
|
28 |
BackgroundColor="Orange" |
|
29 |
TextColor="White" |
|
30 |
Command="{Binding BehaviourCommand}" |
|
31 |
Style="{StaticResource btnNormal}" |
|
32 |
IsVisible="{Binding HasLastMeasure}" |
|
33 |
VerticalOptions="Center" |
|
34 |
Padding="0" |
|
35 |
Grid.Column="2"> |
|
36 |
<Button.Shadow> |
|
37 |
<Shadow |
|
38 |
Brush="Black" |
|
39 |
Offset="2,2" |
|
40 |
Radius="4" |
|
41 |
Opacity="0.5" /> |
|
42 |
</Button.Shadow> |
|
43 |
</Button> |
|
44 |
</Grid> |
|
20 | 45 |
|
21 | 46 |
<Label Text="{Binding LastTime}" |
22 | 47 |
FontSize="14" |
... | ... | |
30 | 55 |
<VerticalStackLayout> |
31 | 56 |
<Label Text="CH4 (ppm)" FontSize="14" TextColor="Gray" FontAttributes="Bold"/> |
32 | 57 |
<Grid ColumnDefinitions="*,Auto" ColumnSpacing="5"> |
33 |
<Entry Grid.Column="0" |
|
34 |
Text="{Binding ConcCH4, Mode=TwoWay, TargetNullValue=''}" |
|
35 |
FontSize="16" |
|
36 |
TextColor="Black" |
|
37 |
Placeholder="0,0" |
|
38 |
Keyboard="Numeric"> |
|
39 |
</Entry> |
|
58 |
<controls:DoubleEntry Grid.Column="0" Text="{Binding ConcCH4, Mode=OneWayToSource, TargetNullValue=''}"/> |
|
40 | 59 |
<Label Grid.Column="1" |
41 | 60 |
Text="{Binding LastCH4, StringFormat='[{0} ppm]'}" |
42 | 61 |
FontSize="16" |
... | ... | |
57 | 76 |
<VerticalStackLayout> |
58 | 77 |
<Label Text="O2 (%)" FontSize="14" TextColor="Gray" FontAttributes="Bold"/> |
59 | 78 |
<Grid ColumnDefinitions="*,Auto" ColumnSpacing="5"> |
60 |
<Entry Grid.Column="0" |
|
61 |
Text="{Binding ConcO2, Mode=TwoWay, TargetNullValue=''}" |
|
62 |
FontSize="16" |
|
63 |
TextColor="Black" |
|
64 |
Placeholder="0,0" |
|
65 |
Keyboard="Numeric"> |
|
66 |
</Entry> |
|
79 |
<controls:DoubleEntry Grid.Column="0" Text="{Binding ConcO2, Mode=OneWayToSource, TargetNullValue=''}"/> |
|
67 | 80 |
<Label Grid.Column="1" |
68 | 81 |
Text="{Binding LastO2, StringFormat='[{0} %]'}" |
69 | 82 |
FontSize="16" |
... | ... | |
84 | 97 |
<VerticalStackLayout> |
85 | 98 |
<Label Text="CO2 (%)" FontSize="14" TextColor="Gray" FontAttributes="Bold"/> |
86 | 99 |
<Grid ColumnDefinitions="*,Auto" ColumnSpacing="5"> |
87 |
<Entry Grid.Column="0" |
|
88 |
Text="{Binding ConcCO2, Mode=TwoWay, TargetNullValue=''}" |
|
89 |
FontSize="16" |
|
90 |
TextColor="Black" |
|
91 |
Placeholder="0,0" |
|
92 |
Keyboard="Numeric"> |
|
93 |
</Entry> |
|
100 |
<controls:DoubleEntry Grid.Column="0" Text="{Binding ConcCO2, Mode=OneWayToSource, TargetNullValue=''}"/> |
|
94 | 101 |
<Label Grid.Column="1" |
95 | 102 |
Text="{Binding LastCO2, StringFormat='[{0} %]'}" |
96 | 103 |
FontSize="16" |
... | ... | |
106 | 113 |
IsVisible="{Binding ConcCO2Error}"/> |
107 | 114 |
</VerticalStackLayout> |
108 | 115 |
|
116 |
<!-- Sortie de l'animal --> |
|
117 |
<HorizontalStackLayout HorizontalOptions="Center" VerticalOptions="Center" IsVisible="{Binding HasLastMeasure}"> |
|
118 |
<CheckBox IsChecked="{Binding IsAnimalOut}" HorizontalOptions="Center" /> |
|
119 |
<Label Text="Sortie de l'animal" FontSize="14" TextColor="Gray" HorizontalOptions="Center" VerticalOptions="Center" /> |
|
120 |
</HorizontalStackLayout> |
|
121 |
|
|
109 | 122 |
|
110 | 123 |
</VerticalStackLayout> |
111 | 124 |
</VerticalStackLayout> |
... | ... | |
117 | 130 |
VerticalOptions="FillAndExpand"> |
118 | 131 |
|
119 | 132 |
<Button |
120 |
Text="Comportements" |
|
121 |
BackgroundColor="Orange" |
|
122 |
TextColor="White" |
|
123 |
Command="{Binding BehaviourCommand}" |
|
124 |
Style="{StaticResource btnNormal}" |
|
125 |
VerticalOptions="End" |
|
126 |
Margin="0,0,10,0"/> |
|
127 |
|
|
128 |
<Button |
|
129 | 133 |
Text="Enregistrer" |
130 | 134 |
Command="{Binding CreateMeasureCommand}" |
131 | 135 |
Style="{StaticResource btnNormal}" |
Formats disponibles : Unified diff