浏览代码

Добавлена фейковая кнопка

Вадим Королёв 5 月之前
父节点
当前提交
241b72dc11
共有 2 个文件被更改,包括 31 次插入20 次删除
  1. 7 0
      src/SASDesktop/Navigation.cs
  2. 24 20
      src/SASDesktop/Views/Portal.xaml

+ 7 - 0
src/SASDesktop/Navigation.cs

@@ -24,6 +24,8 @@ namespace SASDesktop
         public static DelegateCommand ToLicenseRemove   { get; set; }   = new DelegateCommand(ToLicenseRemoveExecuted);
         public static DelegateCommand ToLicenseList     { get; set; }   = new DelegateCommand(ToLicenseListExecuted);
 
+        public static DelegateCommand ToTransportAssign { get; set; }   = new DelegateCommand(ToTransportAssignExecuted);
+
         public static DelegateCommand Logout            { get; set; }   = new DelegateCommand(LogoutExecuted);//shotup
         #endregion
 
@@ -121,5 +123,10 @@ namespace SASDesktop
         {
             Popups.NotImplementedSorry();
         }
+        
+        public static void ToTransportAssign()
+        {
+            Popups.NotImplementedSorry();
+        }
     }
 }

+ 24 - 20
src/SASDesktop/Views/Portal.xaml

@@ -27,16 +27,16 @@
                 <Border Style="{StaticResource Card}">
                     <StackPanel Style="{StaticResource CardInner}">
                         <TextBlock
-                                Style="{StaticResource H3}"
-                                Text="Водители"/>
+                            Style="{StaticResource H3}"
+                            Text="Водители"/>
                         <Button
-                                Content="Создать"
-                                Style="{StaticResource CardButton}"
-                                Command="{Binding Source={x:Static root:Navigation.ToDriverCreate}}"/>
+                            Content="Создать"
+                            Style="{StaticResource CardButton}"
+                            Command="{Binding Source={x:Static root:Navigation.ToDriverCreate}}"/>
                         <Button
-                                Content="Просмотр списка"
-                                Style="{StaticResource CardButton}"
-                                Command="{Binding Source={x:Static root:Navigation.ToDriverList}}"/>
+                            Content="Просмотр списка"
+                            Style="{StaticResource CardButton}"
+                            Command="{Binding Source={x:Static root:Navigation.ToDriverList}}"/>
                     </StackPanel>
                 </Border>
 
@@ -44,27 +44,27 @@
                 <Border Style="{StaticResource Card}">
                     <StackPanel Style="{StaticResource CardInner}">
                         <TextBlock
-                                Style="{StaticResource H3}"
-                                Text="Транспортные средства"/>
+                            Style="{StaticResource H3}"
+                            Text="Транспортные средства"/>
                         <Button
-                                Content="Создать"
-                                Command="{Binding Source={x:Static root:Navigation.ToTransportCreate}}"
-                                Margin="0,4"/>
+                            Content="Создать"
+                            Command="{Binding Source={x:Static root:Navigation.ToTransportCreate}}"
+                            Margin="0,4"/>
                         <Button
-                                Content="Просмотр списка"
-                                Command="{Binding Source={x:Static root:Navigation.ToTransportList}}"
-                                Margin="0,4"/>
+                            Content="Просмотр списка"
+                            Command="{Binding Source={x:Static root:Navigation.ToTransportList}}"
+                            Margin="0,4"/>
                     </StackPanel>
                 </Border>
                 
-                <!--Управление водительскими правами-->
+                <!--Управление-->
                 <Border Style="{StaticResource Card}">
                     <StackPanel Style="{StaticResource CardInner}">
                         <TextBlock
                             Style="{StaticResource H3}"
-                            Text="Управление водительскими правами"/>
+                            Text="Управление"/>
                         <Button
-                            Content="Создать"
+                            Content="Дать права водителю"
                             Command="{Binding Source={x:Static root:Navigation.ToLicenseCreate}}"
                             Margin="0,4"/>
                         <Button
@@ -72,9 +72,13 @@
                             Command="{Binding Source={x:Static root:Navigation.ToLicenseRemove}}"
                             Margin="0,4"/>
                         <Button
-                            Content="Просмотр списка"
+                            Content="Просмотр списка прав"
                             Command="{Binding Source={x:Static root:Navigation.ToLicenseList}}"
                             Margin="0,4"/>
+                        <Button
+                            Content="Присвоить водителю транспортное средство"
+                            Command="{Binding Source={x:Static root:Navigation.ToTransportAssign}}"
+                            Margin="0,4"/>
                     </StackPanel>
                 </Border>
             </WrapPanel>