Ver código fonte

Новые кнопки

1 5 anos atrás
pai
commit
d8dfa1b6cd
3 arquivos alterados com 26 adições e 6 exclusões
  1. 1 1
      CopyCenter/App.xaml
  2. 4 4
      CopyCenter/MenuWindow.xaml
  3. 21 1
      CopyCenter/MenuWindow.xaml.cs

+ 1 - 1
CopyCenter/App.xaml

@@ -2,7 +2,7 @@
              xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
              xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
              xmlns:local="clr-namespace:CopyCenter"
-             StartupUri="MainWindow.xaml">
+             StartupUri="AuthorizationWindow.xaml">
     <Application.Resources>
         <ResourceDictionary Source="Style.xaml"/>
     </Application.Resources>

+ 4 - 4
CopyCenter/MenuWindow.xaml

@@ -11,10 +11,10 @@
             <ImageBrush ImageSource="04e31393e803da57d190cf03e6fb0090.jpg" />
         </Grid.Background>
         <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Bottom">
-            <Button Content="Клиенты" Width="120" Height="30" Margin="25,0,30,35" Background="DarkOrange" FontSize="14" FontFamily="Century Gothic" Foreground="White" />
-            <Button Content="Карты" Width="120" Height="30" Margin="5,0,30,35" Background="DarkOrange" FontSize="14" FontFamily="Century Gothic" Foreground="White"/>
-            <Button Content="Заказы" Width="120" Height="30" Margin="5,0,30,35" Background="DarkOrange" FontSize="14" FontFamily="Century Gothic" Foreground="White"/>
-            <Button Content="Услуги" Width="120" Height="30" Margin="5,0,30,35" Background="DarkOrange" FontSize="14" FontFamily="Century Gothic" Foreground="White"/>
+            <Button Content="Клиенты" Width="120" Height="30" Margin="25,0,30,35" Background="DarkOrange" FontSize="14" FontFamily="Century Gothic" Foreground="White" Click="Clients"/>
+            <Button Content="Карты" Width="120" Height="30" Margin="5,0,30,35" Background="DarkOrange" FontSize="14" FontFamily="Century Gothic" Foreground="White" Click="Cards"/>
+            <Button Content="Заказы" Width="120" Height="30" Margin="5,0,30,35" Background="DarkOrange" FontSize="14" FontFamily="Century Gothic" Foreground="White" Click="Orders"/>
+            <Button Content="Услуги" Width="120" Height="30" Margin="5,0,30,35" Background="DarkOrange" FontSize="14" FontFamily="Century Gothic" Foreground="White" Click="Service"/>
         </StackPanel>
         <Button Content="" HorizontalAlignment="Right" Margin="5" VerticalAlignment="Top" Width="45" Click="Button_Click" Height="40">
                 <Button.Background>

+ 21 - 1
CopyCenter/MenuWindow.xaml.cs

@@ -26,9 +26,29 @@ namespace CopyCenter
 
         private void Button_Click(object sender, RoutedEventArgs e)
         {
-            MainWindow mw = new MainWindow();
+            AuthorizationWindow mw = new AuthorizationWindow();
             mw.Show();
             this.Close();
         }
+
+        private void Clients(object sender, RoutedEventArgs e)
+        {
+
+        }
+
+        private void Cards(object sender, RoutedEventArgs e)
+        {
+
+        }
+
+        private void Orders(object sender, RoutedEventArgs e)
+        {
+
+        }
+
+        private void Service(object sender, RoutedEventArgs e)
+        {
+
+        }
     }
 }