MenuWindow.xaml 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. <Window x:Class="TerminalKFC.MenuWindow"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:local="clr-namespace:TerminalKFC"
  7. mc:Ignorable="d"
  8. Title="Меню" Height="450" Width="400" WindowStartupLocation="CenterScreen" ResizeMode="NoResize" WindowStyle="None">
  9. <Grid>
  10. <Grid.RowDefinitions>
  11. <RowDefinition Height="*"/>
  12. <RowDefinition Height="*"/>
  13. <RowDefinition Height="*"/>
  14. <RowDefinition Height="*"/>
  15. </Grid.RowDefinitions>
  16. <Grid.ColumnDefinitions>
  17. <ColumnDefinition Width="*"/>
  18. <ColumnDefinition Width="300"/>
  19. </Grid.ColumnDefinitions>
  20. <Button x:Name="BurgersBtn" Content="Бургеры" Click="BurgersBtn_Click">
  21. <Button.Background>
  22. <ImageBrush ImageSource="photo/iNBU6433J.png"></ImageBrush>
  23. </Button.Background>
  24. </Button>
  25. <Button Name="DesertsBtn" Grid.Row="1" Content="Десерты" Click="DesertsBtn_Click">
  26. <Button.Background>
  27. <ImageBrush ImageSource="photo/df5df2b.png"></ImageBrush>
  28. </Button.Background>
  29. </Button>
  30. <Button x:Name="TvistersBtn" Grid.Row="2" Content="Твистеры" Click="TvistersBtn_Click">
  31. <Button.Background>
  32. <ImageBrush ImageSource="photo/tvister.png"></ImageBrush>
  33. </Button.Background>
  34. </Button>
  35. <Button x:Name="SnacksBtn" Grid.Row="3" Content="Картофель" Click="SnacksBtn_Click">
  36. <Button.Background>
  37. <ImageBrush ImageSource="photo/fri.png"></ImageBrush>
  38. </Button.Background>
  39. </Button>
  40. <TextBox Name="Itog" Grid.Row="3" Visibility="Collapsed" HorizontalAlignment="Right" VerticalAlignment="Bottom" IsReadOnly="True"></TextBox>
  41. <StackPanel Name="FirstRowBurgers" Orientation="Horizontal" Grid.Column="1" VerticalAlignment="Center" HorizontalAlignment="Center" >
  42. <Button Name="BigBBtn" Width="70" Height="70" Content="Биг" Margin="0,0,10,0" Click="BigBBtn_Click">
  43. <Button.Background>
  44. <ImageBrush ImageSource="photo/big.png"></ImageBrush>
  45. </Button.Background>
  46. </Button>
  47. <Button x:Name="ZingerBBtn" Width="70" Height="70" Content="Зингер" Click="ZingerBBtn_Click">
  48. <Button.Background>
  49. <ImageBrush ImageSource="photo/Chicken_Zinger-800x800.png"></ImageBrush>
  50. </Button.Background>
  51. </Button>
  52. </StackPanel>
  53. <StackPanel x:Name="FirstRowBurgersTBox" Orientation="Horizontal" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Bottom" >
  54. <TextBlock Name="CostOfBig" Margin="0,0,40,0">215 р.</TextBlock>
  55. <TextBlock Name="CostOfZinger">110 р.</TextBlock>
  56. </StackPanel>
  57. <Button Grid.Column="1" Grid.Row="4" HorizontalAlignment="Right" VerticalAlignment="Bottom" Height="20" Width="60" Background="Yellow" Margin="10" Click="Button_Click">Оплатить</Button>
  58. <StackPanel Name="SecondRowBurgers" Grid.Row="1" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center" Orientation="Horizontal">
  59. <Button Name="HotSandersBBtn" Width="70" Height="70" Content="Сандерс(ост)" FontSize="11" Click="HotSandersBBtn_Click">
  60. <Button.Background>
  61. <ImageBrush ImageSource="photo/острый сандерс.png"></ImageBrush>
  62. </Button.Background>
  63. </Button>
  64. <Button x:Name="SandersBBtn" Width="70" Height="70" Content="Сандерс" Click="SandersBBtn_Click">
  65. <Button.Background>
  66. <ImageBrush ImageSource="photo/Сандерс-348x350.png"></ImageBrush>
  67. </Button.Background>
  68. </Button>
  69. </StackPanel>
  70. <StackPanel Name="SecondRowBurgersTBox" Orientation="Horizontal" Grid.Column="1" Grid.Row="1" HorizontalAlignment="Center" VerticalAlignment="Bottom" >
  71. <TextBlock Name="CostOfHotSanders" Margin="0,0,40,0">135 р.</TextBlock>
  72. <TextBlock Name="CostOfSanders" >135 р.</TextBlock>
  73. </StackPanel>
  74. <StackPanel Name="ThirdRowBurger" Orientation="Horizontal" Grid.Column="1" Grid.Row="2" VerticalAlignment="Center" HorizontalAlignment="Center">
  75. <Button Name="BlackBBtn" Content="Тёмный" Width="70" Height="70" Click="BlackBBtn_Click">
  76. <Button.Background>
  77. <ImageBrush ImageSource="photo/темный.png"></ImageBrush>
  78. </Button.Background>
  79. </Button>
  80. <Button Name="ChiefBBtn" Content="Шефбургер" Width="70" Height="70" Click="ChiefBBtn_Click">
  81. <Button.Background>
  82. <ImageBrush ImageSource="photo/iNBU6433J.png"></ImageBrush>
  83. </Button.Background>
  84. </Button>
  85. </StackPanel>
  86. <StackPanel x:Name="ThirdRowBurgerTBox" Orientation="Horizontal" Grid.Column="1" Grid.Row="2" HorizontalAlignment="Center" VerticalAlignment="Bottom">
  87. <TextBlock Name="CostOfBlackBurger" Margin="0,0,40,0">150 р.</TextBlock>
  88. <TextBlock Name="CostOfChiefBurger" >170 р.</TextBlock>
  89. </StackPanel>
  90. <StackPanel Grid.Column="1" Orientation="Horizontal" Name="FirstRowDesert" HorizontalAlignment="Center" VerticalAlignment="Center" Visibility="Collapsed">
  91. <Button x:Name="TropicDesertBtn" Width="70" Height="70" Content="Троп. десерт" FontSize="11" Click="TropicDesertBtn_Click">
  92. <Button.Background>
  93. <ImageBrush ImageSource="photo/df5df2b.png"></ImageBrush>
  94. </Button.Background>
  95. </Button>
  96. <Button Name="TiramisuBtn" Width="70" Height="70" Content="Тирамису" Click="TiramisuBtn_Click">
  97. <Button.Background>
  98. <ImageBrush ImageSource="photo/tiramisu.png"></ImageBrush>
  99. </Button.Background>
  100. </Button>
  101. </StackPanel>
  102. <StackPanel Name="FirstRowDesertTBox" Orientation="Horizontal" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Bottom" Visibility="Collapsed">
  103. <TextBlock Name="CostOfTropDesert" Margin="0,0,40,0">109 р.</TextBlock>
  104. <TextBlock Name="CostOfTiramisu">99 р.</TextBlock>
  105. </StackPanel>
  106. <StackPanel Name="FirstRowTvister" Orientation="Horizontal" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center" Visibility="Collapsed">
  107. <Button Name="TvisterBtn" Width="70" Height="70" Content="Ориг.твистер" FontSize="10" Click="TvisterBtn_Click">
  108. <Button.Background>
  109. <ImageBrush ImageSource="photo/tvister.png"></ImageBrush>
  110. </Button.Background>
  111. </Button>
  112. <Button Name="TvisterJuniorBtn" Width="70" Height="70" Content="Твистер джун." FontSize="10" Click="TvisterJuniorBtn_Click">
  113. <Button.Background>
  114. <ImageBrush ImageSource="photo/tvistjun.png"></ImageBrush>
  115. </Button.Background>
  116. </Button>
  117. </StackPanel>
  118. <StackPanel Name="FirstRowTvisterTBOx" Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Bottom" Grid.Column="1" Visibility="Collapsed">
  119. <TextBlock Name="CostOfOrigTvister" Margin="0,0,40,0">159 р.</TextBlock>
  120. <TextBlock Name="CostOfTvistJunior">99 р.</TextBlock>
  121. </StackPanel>
  122. <StackPanel Name="FirstRowSnacks" Orientation="Horizontal" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center" Visibility="Collapsed">
  123. <Button Name="FriBtn" Width="70" Height="70" Content="Фри" Click="FriBtn_Click">
  124. <Button.Background>
  125. <ImageBrush ImageSource="photo/fri.png"></ImageBrush>
  126. </Button.Background>
  127. </Button>
  128. <Button Name="PoDerevenskiBtn" Width="70" Height="70" Content="По-деревенски" FontSize="9" Click="PoDerevenskiBtn_Click">
  129. <Button.Background>
  130. <ImageBrush ImageSource="photo/kartofel-po-derevenski.png"></ImageBrush>
  131. </Button.Background>
  132. </Button>
  133. </StackPanel>
  134. <StackPanel Name="FirstRowSnacksTBOx" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Bottom" Visibility="Collapsed">
  135. <TextBlock Margin="0,0,40,0">69 р.</TextBlock>
  136. <TextBlock >79 р.</TextBlock>
  137. </StackPanel>
  138. <Image Name="logo" Grid.ColumnSpan="2" Source="photo/logo.jpg"></Image>
  139. <TextBox x:Name="tbfin" Grid.Row="1" Grid.RowSpan="2" Grid.ColumnSpan="2"></TextBox>
  140. </Grid>
  141. </Window>