lizka.flex@outlook.com 2 жил өмнө
parent
commit
e6d12b65f1

+ 3 - 3
Agents/Add.xaml

@@ -22,7 +22,7 @@
             </StackPanel>
             <StackPanel Orientation="Horizontal">
                 <Label Content="Логотип"/>
-                <Button x:Name="btnLogo1" Content="Изменить логотип" Width="200" Height="20"/>
+                <Button x:Name="btnLogo1" Content="Изменить логотип" Width="200" Height="20" Background="#FFC4FAFD"/>
             </StackPanel>
             <StackPanel Orientation="Horizontal">
                 <Label Content="Адресс"/>
@@ -48,8 +48,8 @@
                 <Label Content="E-mail"/>
                 <TextBox x:Name="Mail" Width="200" Height="20"/>
             </StackPanel>
-            <Button x:Name="btnDobi" Content="Добавить" Width="110" Height="20" HorizontalAlignment="Left" Margin="5" Click="btnDobi_Click"/>
-            <Button x:Name="btnNaz" Content="Назад" Width="110" Height="20" HorizontalAlignment="Left" Margin="5" Click="btnNaz_Click"/>
+            <Button x:Name="btnDobi" Content="Добавить" Width="110" Height="20" HorizontalAlignment="Left" Margin="5" Click="btnDobi_Click" Background="#FFC4FAFD"/>
+            <Button x:Name="btnNaz" Content="Назад" Width="110" Height="20" HorizontalAlignment="Left" Margin="5" Click="btnNaz_Click" Background="#FFC4FAFD"/>
         </StackPanel>
     </Grid>
 </Window>

+ 1 - 0
Agents/Add.xaml.cs

@@ -36,6 +36,7 @@ namespace Agents
         {
             Nam.Text = agents.ToString();
             Prior.Text = agents.ToString();
+            
             BaseConnect.baseconnect.SaveChanges();
         }
     }

+ 6 - 4
Agents/Page/Main.xaml

@@ -28,11 +28,13 @@
                         <TextBlock Text="Приоритетность: " FontFamily="Monotype Corsiva"/>
                         <TextBlock Text="{Binding Priority}" FontFamily="Monotype Corsiva"/>
                     </StackPanel>
-                    <StackPanel>
-                        <Button x:Name="btnRed" Content="Редактировать" Width="100" Height="20" Margin="5" Click="btnRed_Click"/>
+                    <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
+                        <Button x:Name="btnRed" Content="Редактировать" HorizontalAlignment="Center" Width="400" Height="20" Margin="5" Click="btnRed_Click" Background="#FFC4FAFD"/>
                     </StackPanel>
                 </StackPanel>
-                <TextBlock Text="10%" VerticalAlignment="Center" FontFamily="Monotype Corsiva"/>
+                <StackPanel HorizontalAlignment="Left" VerticalAlignment="Center" >
+                    <TextBlock Text="10%" VerticalAlignment="Center" HorizontalAlignment="Right" FontSize="20"/>
+                </StackPanel>
             </StackPanel>
         </DataTemplate>
     </Page.Resources>
@@ -53,6 +55,6 @@
             <ComboBoxItem Content="Приоритет агента(по убыванию)"/>
         </ComboBox>
         <ComboBox Name="cmbBox1" Width="200" Height="30" VerticalAlignment="Bottom" Margin="495,10,10,10" SelectionChanged="cmbBox_SelectionChanged" Tag="{Binding ID}"/>
-        <Button x:Name="btnDob" Content="Добавить агента" Grid.Row="2" Width="120" Height="25" Click="btnDob_Click"/>
+        <Button x:Name="btnDob" Content="Добавить агента" Grid.Row="2" Width="120" Height="25" Click="btnDob_Click" Background="#FFC4FAFD"/>
     </Grid>
 </Page>

+ 4 - 4
Agents/Update.xaml

@@ -22,7 +22,7 @@
             </StackPanel>
             <StackPanel Orientation="Horizontal">
                 <Label Content="Логотип"/>
-                <Button x:Name="btnLogo" Content="Изменить логотип" Width="200" Height="20"/>
+                <Button x:Name="btnLogo" Content="Изменить логотип" Width="200" Height="20" Background="#FFC4FAFD"/>
             </StackPanel>
             <StackPanel Orientation="Horizontal">
                 <Label Content="Адресс"/>
@@ -48,9 +48,9 @@
                 <Label Content="E-mail"/>
                 <TextBox x:Name="Mail" Width="200" Height="20"/>
             </StackPanel>
-            <Button x:Name="btnDobi" Content="Редактировать" Width="110" Height="20" HorizontalAlignment="Left" Margin="5"/>
-            <Button x:Name="btnDel" Content="Удалить агента" Width="110" Height="20" HorizontalAlignment="Left" Margin="5"/>
-            <Button x:Name="btnNaz1" Content="Назад" Width="110" Height="20" HorizontalAlignment="Left" Margin="5" Click="btnNaz1_Click"/>
+            <Button x:Name="btnDobi" Content="Редактировать" Width="110" Height="20" HorizontalAlignment="Left" Margin="5" Background="#FFC4FAFD"/>
+            <Button x:Name="btnDel" Content="Удалить агента" Width="110" Height="20" HorizontalAlignment="Left" Margin="5" Background="#FFC4FAFD"/>
+            <Button x:Name="btnNaz1" Content="Назад" Width="110" Height="20" HorizontalAlignment="Left" Margin="5" Click="btnNaz1_Click" Background="#FFC4FAFD"/>
         </StackPanel>
     </Grid>
 </Window>