Révision 12ddf7ef GES_PAC/View/ChambersView.xaml
GES_PAC/View/ChambersView.xaml | ||
---|---|---|
2 | 2 |
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui" |
3 | 3 |
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" |
4 | 4 |
xmlns:vm="clr-namespace:GES_PAC.ViewModel" |
5 |
xmlns:controls="clr-namespace:GES_PAC.View.Controls" |
|
5 | 6 |
xmlns:tools="clr-namespace:GES_PAC.View.Tools" |
6 |
|
|
7 | 7 |
x:Class="GES_PAC.View.ChambersView" |
8 | 8 |
x:DataType="vm:ChambersViewModel"> |
9 | 9 |
|
... | ... | |
48 | 48 |
</Grid.RowDefinitions> |
49 | 49 |
|
50 | 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> |
|
51 |
<controls:ChamberButtonView Grid.Row="5" Grid.Column="0" ChamberId="1" /> |
|
52 |
<controls:ChamberButtonView Grid.Row="4" Grid.Column="0" ChamberId="3" /> |
|
53 |
<controls:ChamberButtonView Grid.Row="3" Grid.Column="0" ChamberId="5" /> |
|
54 |
<controls:ChamberButtonView Grid.Row="2" Grid.Column="0" ChamberId="7" /> |
|
55 |
<controls:ChamberButtonView Grid.Row="1" Grid.Column="0" ChamberId="9" /> |
|
56 |
<controls:ChamberButtonView Grid.Row="0" Grid.Column="0" ChamberId="11" /> |
|
77 | 57 |
|
78 | 58 |
<!-- 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> |
|
59 |
<controls:ChamberButtonView Grid.Row="5" Grid.Column="2" ChamberId="2" /> |
|
60 |
<controls:ChamberButtonView Grid.Row="4" Grid.Column="2" ChamberId="4" /> |
|
61 |
<controls:ChamberButtonView Grid.Row="3" Grid.Column="2" ChamberId="6" /> |
|
62 |
<controls:ChamberButtonView Grid.Row="2" Grid.Column="2" ChamberId="8" /> |
|
63 |
<controls:ChamberButtonView Grid.Row="1" Grid.Column="2" ChamberId="10" /> |
|
64 |
<controls:ChamberButtonView Grid.Row="0" Grid.Column="2" ChamberId="12" /> |
|
103 | 65 |
|
104 | 66 |
<!-- Couloir central --> |
105 | 67 |
<BoxView Grid.Column="1" Grid.RowSpan="6" HeightRequest="500" WidthRequest="75" Color="Gray"/> |
... | ... | |
130 | 92 |
Text="Terminer les mesures" |
131 | 93 |
Command="{Binding TerminateSetCommand}" |
132 | 94 |
Style="{StaticResource btnNormal}" |
133 |
IsEnabled="{Binding IsFormValid}" |
|
134 | 95 |
VerticalOptions="End"/> |
135 | 96 |
</StackLayout> |
136 | 97 |
</StackLayout> |
Formats disponibles : Unified diff