root / GES_PAC / View / ChambersView.xaml @ 9fd69a0e
Historique | Voir | Annoter | Télécharger (10,593 ko)
1 |
<?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 |
|
7 |
x:Class="GES_PAC.View.ChambersView" |
8 |
x:DataType="vm:ChambersViewModel"> |
9 |
|
10 |
<Grid>
|
11 |
<StackLayout BackgroundColor="White" Spacing="50"> |
12 |
<tools:ConnectionIndicatorView /> |
13 |
<ScrollView>
|
14 |
|
15 |
<VerticalStackLayout Grid.Row="1" Spacing="5"> |
16 |
|
17 |
<Label Text="Série n°1" |
18 |
FontSize="16" |
19 |
FontAttributes="Bold" |
20 |
HorizontalOptions="Center" /> |
21 |
|
22 |
<VerticalStackLayout HorizontalOptions="Center" VerticalOptions="Center" Spacing="10"> |
23 |
|
24 |
<!-- Remorque -->
|
25 |
<Border Stroke="Black" StrokeThickness="2" BackgroundColor="Transparent" HorizontalOptions="Center" StrokeShape="RoundRectangle 10"> |
26 |
|
27 |
<Grid
|
28 |
BackgroundColor="LightGray" |
29 |
Padding="5" |
30 |
RowSpacing="0" |
31 |
ColumnSpacing="5" |
32 |
WidthRequest="250" |
33 |
HeightRequest="500"> |
34 |
|
35 |
<Grid.ColumnDefinitions>
|
36 |
<ColumnDefinition Width="Auto"/> |
37 |
<ColumnDefinition Width="80"/> |
38 |
<ColumnDefinition Width="Auto"/> |
39 |
</Grid.ColumnDefinitions>
|
40 |
|
41 |
<Grid.RowDefinitions>
|
42 |
<RowDefinition Height="*" /> |
43 |
<RowDefinition Height="*" /> |
44 |
<RowDefinition Height="*" /> |
45 |
<RowDefinition Height="*" /> |
46 |
<RowDefinition Height="*" /> |
47 |
<RowDefinition Height="*" /> |
48 |
</Grid.RowDefinitions>
|
49 |
|
50 |
<!-- Boutons Gauche -->
|
51 |
<Grid Grid.Row="5" Grid.Column="0"> |
52 |
<Button Text="1" Style="{StaticResource ChambreButtonStyle}" Command="{Binding OnClickChamberCommand}" CommandParameter="1" BackgroundColor="{Binding ChamberColors[0]}" IsEnabled="{Binding ChamberIsIn[0]}"/> |
53 |
<Label Text="{Binding ChamberNumbers[0]}" FontSize="10" Margin="3" HorizontalOptions="Start" VerticalOptions="Start" /> |
54 |
<Label Text="{Binding ChamberIsOut[0]}" FontSize="10" Margin="10" HorizontalOptions="Start" VerticalOptions="Start" /> |
55 |
</Grid>
|
56 |
<Grid Grid.Row="4" Grid.Column="0"> |
57 |
<Button Text="3" Style="{StaticResource ChambreButtonStyle}" Command="{Binding OnClickChamberCommand}" CommandParameter="3" BackgroundColor="{Binding ChamberColors[2]}" IsEnabled="{Binding ChamberIsIn[2]}"/> |
58 |
<Label Text="{Binding ChamberNumbers[2]}" FontSize="10" Margin="3" HorizontalOptions="Start" VerticalOptions="Start" /> |
59 |
</Grid>
|
60 |
<Grid Grid.Row="3" Grid.Column="0"> |
61 |
<Button Text="5" Style="{StaticResource ChambreButtonStyle}" Command="{Binding OnClickChamberCommand}" CommandParameter="5" BackgroundColor="{Binding ChamberColors[4]}" IsEnabled="{Binding ChamberIsIn[4]}"/> |
62 |
<Label Text="{Binding ChamberNumbers[4]}" FontSize="10" Margin="3" HorizontalOptions="Start" VerticalOptions="Start" /> |
63 |
</Grid>
|
64 |
<Grid Grid.Row="2" Grid.Column="0"> |
65 |
|
66 |
<Button Text="7" Style="{StaticResource ChambreButtonStyle}" Command="{Binding OnClickChamberCommand}" CommandParameter="7" BackgroundColor="{Binding ChamberColors[6]}" IsEnabled="{Binding ChamberIsIn[6]}"/> |
67 |
<Label Text="{Binding ChamberNumbers[6]}" FontSize="10" Margin="3" HorizontalOptions="Start" VerticalOptions="Start" /> |
68 |
</Grid>
|
69 |
<Grid Grid.Row="1" Grid.Column="0"> |
70 |
<Button Text="9" Style="{StaticResource ChambreButtonStyle}" Command="{Binding OnClickChamberCommand}" CommandParameter="9" BackgroundColor="{Binding ChamberColors[8]}" IsEnabled="{Binding ChamberIsIn[8]}"/> |
71 |
<Label Text="{Binding ChamberNumbers[8]}" FontSize="10" Margin="3" HorizontalOptions="Start" VerticalOptions="Start" /> |
72 |
</Grid>
|
73 |
<Grid Grid.Row="0" Grid.Column="0"> |
74 |
<Button Text="11" Style="{StaticResource ChambreButtonStyle}" Command="{Binding OnClickChamberCommand}" CommandParameter="11" BackgroundColor="{Binding ChamberColors[10]}" IsEnabled="{Binding ChamberIsIn[10]}"/> |
75 |
<Label Text="{Binding ChamberNumbers[10]}" FontSize="10" Margin="3" HorizontalOptions="Start" VerticalOptions="Start" /> |
76 |
</Grid>
|
77 |
|
78 |
<!-- Boutons Droite -->
|
79 |
<Grid Grid.Row="5" Grid.Column="2"> |
80 |
<Button Text="2" Style="{StaticResource ChambreButtonStyle}" Command="{Binding OnClickChamberCommand}" CommandParameter="2" BackgroundColor="{Binding ChamberColors[1]}" IsEnabled="{Binding ChamberIsIn[1]}"/> |
81 |
<Label Text="{Binding ChamberNumbers[1]}" FontSize="10" Margin="3" HorizontalOptions="Start" VerticalOptions="Start" /> |
82 |
</Grid>
|
83 |
<Grid Grid.Row="4" Grid.Column="2"> |
84 |
<Button Text="4" Style="{StaticResource ChambreButtonStyle}" Command="{Binding OnClickChamberCommand}" CommandParameter="4" BackgroundColor="{Binding ChamberColors[3]}" IsEnabled="{Binding ChamberIsIn[3]}"/> |
85 |
<Label Text="{Binding ChamberNumbers[3]}" FontSize="10" Margin="3" HorizontalOptions="Start" VerticalOptions="Start" /> |
86 |
</Grid>
|
87 |
<Grid Grid.Row="3" Grid.Column="2"> |
88 |
<Button Text="6" Style="{StaticResource ChambreButtonStyle}" Command="{Binding OnClickChamberCommand}" CommandParameter="6" BackgroundColor="{Binding ChamberColors[5]}" IsEnabled="{Binding ChamberIsIn[5]}"/> |
89 |
<Label Text="{Binding ChamberNumbers[5]}" FontSize="10" Margin="3" HorizontalOptions="Start" VerticalOptions="Start" /> |
90 |
</Grid>
|
91 |
<Grid Grid.Row="2" Grid.Column="2"> |
92 |
<Button Text="8" Style="{StaticResource ChambreButtonStyle}" Command="{Binding OnClickChamberCommand}" CommandParameter="8" BackgroundColor="{Binding ChamberColors[7]}" IsEnabled="{Binding ChamberIsIn[7]}"/> |
93 |
<Label Text="{Binding ChamberNumbers[7]}" FontSize="10" Margin="3" HorizontalOptions="Start" VerticalOptions="Start" /> |
94 |
</Grid>
|
95 |
<Grid Grid.Row="1" Grid.Column="2"> |
96 |
<Button Text="10" Style="{StaticResource ChambreButtonStyle}" Command="{Binding OnClickChamberCommand}" CommandParameter="10" BackgroundColor="{Binding ChamberColors[9]}" IsEnabled="{Binding ChamberIsIn[9]}"/> |
97 |
<Label Text="{Binding ChamberNumbers[9]}" FontSize="10" Margin="3" HorizontalOptions="Start" VerticalOptions="Start" /> |
98 |
</Grid>
|
99 |
<Grid Grid.Row="0" Grid.Column="2"> |
100 |
<Button Text="12" Style="{StaticResource ChambreButtonStyle}" Command="{Binding OnClickChamberCommand}" CommandParameter="12" BackgroundColor="{Binding ChamberColors[11]}" IsEnabled="{Binding ChamberIsIn[11]}"/> |
101 |
<Label Text="{Binding ChamberNumbers[11]}" FontSize="10" Margin="3" HorizontalOptions="Start" VerticalOptions="Start" /> |
102 |
</Grid>
|
103 |
|
104 |
<!-- Couloir central -->
|
105 |
<BoxView Grid.Column="1" Grid.RowSpan="6" HeightRequest="500" WidthRequest="75" Color="Gray"/> |
106 |
</Grid>
|
107 |
|
108 |
</Border>
|
109 |
|
110 |
<!-- Arrow -->
|
111 |
<Image Source="arrow" |
112 |
HeightRequest="75" |
113 |
WidthRequest="75" |
114 |
Rotation="-90" |
115 |
TranslationY="20" |
116 |
HorizontalOptions="Center" |
117 |
BackgroundColor="Transparent"/> |
118 |
</VerticalStackLayout>
|
119 |
|
120 |
|
121 |
</VerticalStackLayout>
|
122 |
</ScrollView>
|
123 |
<StackLayout
|
124 |
Margin="-40" |
125 |
HorizontalOptions="Center" |
126 |
Orientation="Horizontal" |
127 |
VerticalOptions="Fill"> |
128 |
|
129 |
<Button
|
130 |
Text="Terminer les mesures" |
131 |
Command="{Binding TerminateSetCommand}" |
132 |
Style="{StaticResource btnNormal}" |
133 |
IsEnabled="{Binding IsFormValid}" |
134 |
VerticalOptions="End"/> |
135 |
</StackLayout>
|
136 |
</StackLayout>
|
137 |
<Grid Grid.RowSpan="1" IsVisible="{Binding IsBusy}"> |
138 |
<Border StrokeThickness="0" |
139 |
Background="Black" |
140 |
Opacity="0.5" |
141 |
Padding="20" |
142 |
WidthRequest="160" |
143 |
HeightRequest="160" |
144 |
HorizontalOptions="Center" |
145 |
VerticalOptions="Center" |
146 |
StrokeShape="RoundRectangle 20"> |
147 |
|
148 |
<VerticalStackLayout HorizontalOptions="Center" VerticalOptions="Center"> |
149 |
<ActivityIndicator IsRunning="True" Color="White" /> |
150 |
<Label Text="Chargement..." |
151 |
FontSize="14" |
152 |
TextColor="white" |
153 |
HorizontalOptions="Center"/> |
154 |
</VerticalStackLayout>
|
155 |
</Border>
|
156 |
</Grid>
|
157 |
</Grid>
|
158 |
|
159 |
</ContentPage>
|